public final class com.mongodb.event.ClusterEventMulticaster implements com.mongodb.event.ClusterListener
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.event.ClusterEventMulticaster
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.ClusterListener> clusterListeners;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/event/ClusterListener;>;
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.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.List<com.mongodb.event.ClusterListener>);
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 "clusterListeners"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: ldc "All ClusterListener 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.ClusterEventMulticaster java.util.List
StackMap stack: java.lang.String
3: iconst_1
StackMap locals: com.mongodb.event.ClusterEventMulticaster 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.ClusterEventMulticaster.clusterListeners:Ljava/util/List;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/event/ClusterEventMulticaster;
0 7 1 clusterListeners Ljava/util/List<Lcom/mongodb/event/ClusterListener;>;
Signature: (Ljava/util/List<Lcom/mongodb/event/ClusterListener;>;)V
MethodParameters:
Name Flags
clusterListeners final
public java.util.List<com.mongodb.event.ClusterListener> getClusterListeners();
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.ClusterEventMulticaster.clusterListeners: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/ClusterEventMulticaster;
Signature: ()Ljava/util/List<Lcom/mongodb/event/ClusterListener;>;
public void clusterOpening(com.mongodb.event.ClusterOpeningEvent);
descriptor: (Lcom/mongodb/event/ClusterOpeningEvent;)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.ClusterEventMulticaster.clusterListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterOpeningEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ClusterListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ClusterListener.clusterOpening:(Lcom/mongodb/event/ClusterOpeningEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterOpeningEvent com.mongodb.event.ClusterListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising cluster 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.ClusterEventMulticaster com.mongodb.event.ClusterOpeningEvent 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/ClusterEventMulticaster;
0 9 1 event Lcom/mongodb/event/ClusterOpeningEvent;
2 7 2 cur Lcom/mongodb/event/ClusterListener;
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 clusterClosed(com.mongodb.event.ClusterClosedEvent);
descriptor: (Lcom/mongodb/event/ClusterClosedEvent;)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.ClusterEventMulticaster.clusterListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterClosedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ClusterListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ClusterListener.clusterClosed:(Lcom/mongodb/event/ClusterClosedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterClosedEvent com.mongodb.event.ClusterListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising cluster closed 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.ClusterEventMulticaster com.mongodb.event.ClusterClosedEvent 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/ClusterEventMulticaster;
0 9 1 event Lcom/mongodb/event/ClusterClosedEvent;
2 7 2 cur Lcom/mongodb/event/ClusterListener;
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 clusterDescriptionChanged(com.mongodb.event.ClusterDescriptionChangedEvent);
descriptor: (Lcom/mongodb/event/ClusterDescriptionChangedEvent;)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.ClusterEventMulticaster.clusterListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterDescriptionChangedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.ClusterListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.ClusterListener.clusterDescriptionChanged:(Lcom/mongodb/event/ClusterDescriptionChangedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.ClusterEventMulticaster com.mongodb.event.ClusterDescriptionChangedEvent com.mongodb.event.ClusterListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.ClusterEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising cluster 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.ClusterEventMulticaster com.mongodb.event.ClusterDescriptionChangedEvent 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/ClusterEventMulticaster;
0 9 1 event Lcom/mongodb/event/ClusterDescriptionChangedEvent;
2 7 2 cur Lcom/mongodb/event/ClusterListener;
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: "ClusterEventMulticaster.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()
com.mongodb.annotations.Immutable()