public final class com.mongodb.event.CommandEventMulticaster implements com.mongodb.event.CommandListener
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.event.CommandEventMulticaster
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.CommandListener> commandListeners;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/event/CommandListener;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "protocol.event"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.List<com.mongodb.event.CommandListener>);
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 "commandListeners"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: ldc "All CommandListener 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.CommandEventMulticaster java.util.List
StackMap stack: java.lang.String
3: iconst_1
StackMap locals: com.mongodb.event.CommandEventMulticaster 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.CommandEventMulticaster.commandListeners:Ljava/util/List;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/event/CommandEventMulticaster;
0 7 1 commandListeners Ljava/util/List<Lcom/mongodb/event/CommandListener;>;
Signature: (Ljava/util/List<Lcom/mongodb/event/CommandListener;>;)V
MethodParameters:
Name Flags
commandListeners final
public java.util.List<com.mongodb.event.CommandListener> getCommandListeners();
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.CommandEventMulticaster.commandListeners: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/CommandEventMulticaster;
Signature: ()Ljava/util/List<Lcom/mongodb/event/CommandListener;>;
public void commandStarted(com.mongodb.event.CommandStartedEvent);
descriptor: (Lcom/mongodb/event/CommandStartedEvent;)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.CommandEventMulticaster.commandListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandStartedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.CommandListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.CommandListener.commandStarted:(Lcom/mongodb/event/CommandStartedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandStartedEvent com.mongodb.event.CommandListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising command started 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.CommandEventMulticaster com.mongodb.event.CommandStartedEvent 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/CommandEventMulticaster;
0 9 1 event Lcom/mongodb/event/CommandStartedEvent;
2 7 2 cur Lcom/mongodb/event/CommandListener;
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 commandSucceeded(com.mongodb.event.CommandSucceededEvent);
descriptor: (Lcom/mongodb/event/CommandSucceededEvent;)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.CommandEventMulticaster.commandListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandSucceededEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.CommandListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.CommandListener.commandSucceeded:(Lcom/mongodb/event/CommandSucceededEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandSucceededEvent com.mongodb.event.CommandListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising command succeeded 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.CommandEventMulticaster com.mongodb.event.CommandSucceededEvent 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/CommandEventMulticaster;
0 9 1 event Lcom/mongodb/event/CommandSucceededEvent;
2 7 2 cur Lcom/mongodb/event/CommandListener;
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 commandFailed(com.mongodb.event.CommandFailedEvent);
descriptor: (Lcom/mongodb/event/CommandFailedEvent;)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.CommandEventMulticaster.commandListeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandFailedEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.event.CommandListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface com.mongodb.event.CommandListener.commandFailed:(Lcom/mongodb/event/CommandFailedEvent;)V
3: goto 7
StackMap locals: com.mongodb.event.CommandEventMulticaster com.mongodb.event.CommandFailedEvent com.mongodb.event.CommandListener java.util.Iterator
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isWarnEnabled:()Z
ifeq 7
6: getstatic com.mongodb.event.CommandEventMulticaster.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Exception thrown raising command failed 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.CommandEventMulticaster com.mongodb.event.CommandFailedEvent 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/CommandEventMulticaster;
0 9 1 event Lcom/mongodb/event/CommandFailedEvent;
2 7 2 cur Lcom/mongodb/event/CommandListener;
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: "CommandEventMulticaster.java"
RuntimeVisibleAnnotations:
com.mongodb.annotations.Immutable()
java.lang.Deprecated()