public final class com.mongodb.event.ServerEventMulticaster implements com.mongodb.event.ServerListener
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.event.ServerEventMulticaster
super_class: java.lang.Object
{
private static final com.mongodb.diagnostics.logging.Logger LOGGER;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.List<com.mongodb.event.ServerListener> serverListeners;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/event/ServerListener;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "cluster.event"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.List<com.mongodb.event.ServerListener>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc "serverListeners"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: ldc "All ServerListener instances are non-null"
aload 1
aconst_null
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 3
iconst_0
goto 4
StackMap locals: com.mongodb.event.ServerEventMulticaster java.util.List
StackMap stack: java.lang.String
3: iconst_1
StackMap locals: com.mongodb.event.ServerEventMulticaster java.util.List
StackMap stack: java.lang.String int
4: invokestatic com.mongodb.assertions.Assertions.isTrue:(Ljava/lang/String;Z)V
5: aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.mongodb.event.ServerEventMulticaster.serverListeners:Ljava/util/List;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/event/ServerEventMulticaster;
0 7 1 serverListeners Ljava/util/List<Lcom/mongodb/event/ServerListener;>;
Signature: (Ljava/util/List<Lcom/mongodb/event/ServerListener;>;)V
MethodParameters:
Name Flags
serverListeners final
public java.util.List<com.mongodb.event.ServerListener> getServerListeners();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.event.ServerEventMulticaster.serverListeners:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/event/ServerEventMulticaster;
Signature: ()Ljava/util/List<Lcom/mongodb/event/ServerListener;>;
public void serverOpening(com.mongodb.event.ServerOpeningEvent);
descriptor: (Lcom/mongodb/event/ServerOpeningEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.event.ServerEventMulticaster.serverListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerOpeningEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ServerListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ServerListener.serverOpening:(Lcom/mongodb/event/ServerOpeningEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerOpeningEvent com.mongodb.event.ServerListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising server opening event to listener %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface com.mongodb.diagnostics.logging.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 end local 2 7: StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerOpeningEvent top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/event/ServerEventMulticaster;
0 9 1 event Lcom/mongodb/event/ServerOpeningEvent;
2 7 2 cur Lcom/mongodb/event/ServerListener;
5 7 4 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
event final
public void serverClosed(com.mongodb.event.ServerClosedEvent);
descriptor: (Lcom/mongodb/event/ServerClosedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.event.ServerEventMulticaster.serverListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerClosedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ServerListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ServerListener.serverClosed:(Lcom/mongodb/event/ServerClosedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerClosedEvent com.mongodb.event.ServerListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising server opening event to listener %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface com.mongodb.diagnostics.logging.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 end local 2 7: StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerClosedEvent top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/event/ServerEventMulticaster;
0 9 1 event Lcom/mongodb/event/ServerClosedEvent;
2 7 2 cur Lcom/mongodb/event/ServerListener;
5 7 4 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
event final
public void serverDescriptionChanged(com.mongodb.event.ServerDescriptionChangedEvent);
descriptor: (Lcom/mongodb/event/ServerDescriptionChangedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.event.ServerEventMulticaster.serverListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerDescriptionChangedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ServerListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ServerListener.serverDescriptionChanged:(Lcom/mongodb/event/ServerDescriptionChangedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerDescriptionChangedEvent com.mongodb.event.ServerListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ServerEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising server description changed event to listener %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface com.mongodb.diagnostics.logging.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 end local 2 7: StackMap locals: com.mongodb.event.ServerEventMulticaster com.mongodb.event.ServerDescriptionChangedEvent top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/event/ServerEventMulticaster;
0 9 1 event Lcom/mongodb/event/ServerDescriptionChangedEvent;
2 7 2 cur Lcom/mongodb/event/ServerListener;
5 7 4 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
event final
}
SourceFile: "ServerEventMulticaster.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()