class com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor
super_class: java.lang.Object
{
private final java.nio.channels.Selector selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isClosed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final com.mongodb.internal.connection.ConcurrentLinkedDeque<com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$Pair> pendingRegistrations;
descriptor: Lcom/mongodb/internal/connection/ConcurrentLinkedDeque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/internal/connection/ConcurrentLinkedDeque<Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor$Pair;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.mongodb.internal.connection.ConcurrentLinkedDeque
dup
invokespecial com.mongodb.internal.connection.ConcurrentLinkedDeque.<init>:()V
putfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.pendingRegistrations:Lcom/mongodb/internal/connection/ConcurrentLinkedDeque;
2: aload 0
invokestatic java.nio.channels.Selector.open:()Ljava/nio/channels/Selector;
putfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.selector:Ljava/nio/channels/Selector;
3: goto 6
StackMap locals: com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor
StackMap stack: java.io.IOException
4: astore 1
start local 1 5: new com.mongodb.MongoClientException
dup
ldc "Exception opening Selector"
aload 1
invokespecial com.mongodb.MongoClientException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor;
5 6 1 e Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
void start();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.lang.Thread
dup
new com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$1
dup
aload 0
invokespecial com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$1.<init>:(Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor;)V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 1
start local 1 1: aload 1
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
2: aload 1
invokevirtual java.lang.Thread.start:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor;
1 4 1 selectorThread Ljava/lang/Thread;
void register(java.nio.channels.SocketChannel, java.lang.Runnable);
descriptor: (Ljava/nio/channels/SocketChannel;Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.pendingRegistrations:Lcom/mongodb/internal/connection/ConcurrentLinkedDeque;
new com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$Pair
dup
aload 1
aload 2
invokespecial com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$Pair.<init>:(Ljava/nio/channels/SocketChannel;Ljava/lang/Runnable;)V
invokevirtual com.mongodb.internal.connection.ConcurrentLinkedDeque.add:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor;
0 3 1 channel Ljava/nio/channels/SocketChannel;
0 3 2 attachment Ljava/lang/Runnable;
MethodParameters:
Name Flags
channel final
attachment final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.isClosed:Z
1: aload 0
getfield com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/TlsChannelStreamFactoryFactory$SelectorMonitor;
}
SourceFile: "TlsChannelStreamFactoryFactory.java"
NestHost: com.mongodb.connection.TlsChannelStreamFactoryFactory
InnerClasses:
private SelectorMonitor = com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor of com.mongodb.connection.TlsChannelStreamFactoryFactory
com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$1
private final Pair = com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor$Pair of com.mongodb.connection.TlsChannelStreamFactoryFactory$SelectorMonitor