class com.mongodb.internal.connection.CommandResultCallback<T> extends com.mongodb.internal.connection.CommandResultBaseCallback<org.bson.BsonDocument>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.CommandResultCallback
super_class: com.mongodb.internal.connection.CommandResultBaseCallback
{
public static final com.mongodb.diagnostics.logging.Logger LOGGER;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final com.mongodb.async.SingleResultCallback<T> callback;
descriptor: Lcom/mongodb/async/SingleResultCallback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/async/SingleResultCallback<TT;>;
private final org.bson.codecs.Decoder<T> decoder;
descriptor: Lorg/bson/codecs/Decoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/bson/codecs/Decoder<TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "protocol.command"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.internal.connection.CommandResultCallback.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.mongodb.async.SingleResultCallback<T>, org.bson.codecs.Decoder<T>, long, com.mongodb.ServerAddress);
descriptor: (Lcom/mongodb/async/SingleResultCallback;Lorg/bson/codecs/Decoder;JLcom/mongodb/ServerAddress;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 0
new org.bson.codecs.BsonDocumentCodec
dup
invokespecial org.bson.codecs.BsonDocumentCodec.<init>:()V
lload 3
aload 5
invokespecial com.mongodb.internal.connection.CommandResultBaseCallback.<init>:(Lorg/bson/codecs/Decoder;JLcom/mongodb/ServerAddress;)V
1: aload 0
aload 1
putfield com.mongodb.internal.connection.CommandResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
2: aload 0
aload 2
putfield com.mongodb.internal.connection.CommandResultCallback.decoder:Lorg/bson/codecs/Decoder;
3: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/CommandResultCallback<TT;>;
0 4 1 callback Lcom/mongodb/async/SingleResultCallback<TT;>;
0 4 2 decoder Lorg/bson/codecs/Decoder<TT;>;
0 4 3 requestId J
0 4 5 serverAddress Lcom/mongodb/ServerAddress;
Signature: (Lcom/mongodb/async/SingleResultCallback<TT;>;Lorg/bson/codecs/Decoder<TT;>;JLcom/mongodb/ServerAddress;)V
MethodParameters:
Name Flags
callback final
decoder final
requestId final
serverAddress final
protected void callCallback(org.bson.BsonDocument, java.lang.Throwable);
descriptor: (Lorg/bson/BsonDocument;Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 3
1: aload 0
getfield com.mongodb.internal.connection.CommandResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aconst_null
aload 2
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: goto 12
3: StackMap locals:
StackMap stack:
getstatic com.mongodb.internal.connection.CommandResultCallback.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
ifeq 5
4: getstatic com.mongodb.internal.connection.CommandResultCallback.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Command execution completed with status "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokestatic com.mongodb.internal.connection.ProtocolHelper.isCommandOk:(Lorg/bson/BsonDocument;)Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 1
invokestatic com.mongodb.internal.connection.ProtocolHelper.isCommandOk:(Lorg/bson/BsonDocument;)Z
ifne 8
6: aload 0
getfield com.mongodb.internal.connection.CommandResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aconst_null
aload 1
aload 0
invokevirtual com.mongodb.internal.connection.CommandResultCallback.getServerAddress:()Lcom/mongodb/ServerAddress;
invokestatic com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)Lcom/mongodb/MongoException;
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
7: goto 12
8: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.CommandResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
getfield com.mongodb.internal.connection.CommandResultCallback.decoder:Lorg/bson/codecs/Decoder;
new org.bson.BsonDocumentReader
dup
aload 1
invokespecial org.bson.BsonDocumentReader.<init>:(Lorg/bson/BsonDocument;)V
invokestatic org.bson.codecs.DecoderContext.builder:()Lorg/bson/codecs/DecoderContext$Builder;
invokevirtual org.bson.codecs.DecoderContext$Builder.build:()Lorg/bson/codecs/DecoderContext;
invokeinterface org.bson.codecs.Decoder.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
aconst_null
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 3
start local 3 11: aload 0
getfield com.mongodb.internal.connection.CommandResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aconst_null
aload 3
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/internal/connection/CommandResultCallback<TT;>;
0 13 1 response Lorg/bson/BsonDocument;
0 13 2 t Ljava/lang/Throwable;
11 12 3 t1 Ljava/lang/Throwable;
Exception table:
from to target type
8 9 10 Class java.lang.Throwable
MethodParameters:
Name Flags
response final
t final
protected void callCallback(java.lang.Object, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast org.bson.BsonDocument
aload 2
invokevirtual com.mongodb.internal.connection.CommandResultCallback.callCallback:(Lorg/bson/BsonDocument;Ljava/lang/Throwable;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Lcom/mongodb/internal/connection/CommandResultBaseCallback<Lorg/bson/BsonDocument;>;
SourceFile: "CommandResultCallback.java"
InnerClasses:
public final Builder = org.bson.codecs.DecoderContext$Builder of org.bson.codecs.DecoderContext