class com.mongodb.internal.connection.InternalStreamConnection$2$1 implements com.mongodb.async.SingleResultCallback<com.mongodb.internal.connection.ResponseBuffers>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.InternalStreamConnection$2$1
super_class: java.lang.Object
{
final com.mongodb.internal.connection.InternalStreamConnection$2 this$1;
descriptor: Lcom/mongodb/internal/connection/InternalStreamConnection$2;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.internal.connection.CommandEventSender val$commandEventSender;
descriptor: Lcom/mongodb/internal/connection/CommandEventSender;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.async.SingleResultCallback val$callback;
descriptor: Lcom/mongodb/async/SingleResultCallback;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.session.SessionContext val$sessionContext;
descriptor: Lcom/mongodb/session/SessionContext;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final int val$messageId;
descriptor: I
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bson.codecs.Decoder val$decoder;
descriptor: Lorg/bson/codecs/Decoder;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mongodb.internal.connection.InternalStreamConnection$2, com.mongodb.internal.connection.CommandEventSender, com.mongodb.async.SingleResultCallback, com.mongodb.session.SessionContext, int, org.bson.codecs.Decoder);
descriptor: (Lcom/mongodb/internal/connection/InternalStreamConnection$2;Lcom/mongodb/internal/connection/CommandEventSender;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/session/SessionContext;ILorg/bson/codecs/Decoder;)V
flags: (0x0000)
Code:
stack=2, locals=7, args_size=7
start local 0 0: aload 0
aload 1
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.this$1:Lcom/mongodb/internal/connection/InternalStreamConnection$2;
aload 0
aload 2
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$commandEventSender:Lcom/mongodb/internal/connection/CommandEventSender;
aload 0
aload 3
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
aload 4
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$sessionContext:Lcom/mongodb/session/SessionContext;
aload 0
iload 5
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$messageId:I
aload 0
aload 6
putfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$decoder:Lorg/bson/codecs/Decoder;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/InternalStreamConnection$2$1;
MethodParameters:
Name Flags
this$0 final
val$commandEventSender final
val$callback final
val$sessionContext final
val$messageId final
val$decoder final
public void onResult(com.mongodb.internal.connection.ResponseBuffers, java.lang.Throwable);
descriptor: (Lcom/mongodb/internal/connection/ResponseBuffers;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 4
1: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$commandEventSender:Lcom/mongodb/internal/connection/CommandEventSender;
aload 2
invokeinterface com.mongodb.internal.connection.CommandEventSender.sendFailedEvent:(Ljava/lang/Throwable;)V
2: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$callback:Lcom/mongodb/async/SingleResultCallback;
aconst_null
aload 2
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.this$1:Lcom/mongodb/internal/connection/InternalStreamConnection$2;
invokestatic com.mongodb.internal.connection.InternalStreamConnection$2.access$1:(Lcom/mongodb/internal/connection/InternalStreamConnection$2;)Lcom/mongodb/internal/connection/InternalStreamConnection;
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$sessionContext:Lcom/mongodb/session/SessionContext;
aload 1
invokevirtual com.mongodb.internal.connection.InternalStreamConnection.updateSessionContext:(Lcom/mongodb/session/SessionContext;Lcom/mongodb/internal/connection/ResponseBuffers;)V
5: new org.bson.BsonBinaryReader
dup
new org.bson.io.ByteBufferBsonInput
dup
aload 1
invokevirtual com.mongodb.internal.connection.ResponseBuffers.getBodyByteBuffer:()Lorg/bson/ByteBuf;
invokespecial org.bson.io.ByteBufferBsonInput.<init>:(Lorg/bson/ByteBuf;)V
invokespecial org.bson.BsonBinaryReader.<init>:(Lorg/bson/io/BsonInput;)V
invokestatic com.mongodb.internal.connection.ProtocolHelper.isCommandOk:(Lorg/bson/BsonReader;)Z
6: istore 3
start local 3 7: aload 1
invokevirtual com.mongodb.internal.connection.ResponseBuffers.reset:()V
8: iload 3
ifne 14
9: aload 1
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$messageId:I
new org.bson.codecs.BsonDocumentCodec
dup
invokespecial org.bson.codecs.BsonDocumentCodec.<init>:()V
invokevirtual com.mongodb.internal.connection.ResponseBuffers.getResponseDocument:(ILorg/bson/codecs/Decoder;)Lorg/bson/BsonDocument;
10: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.this$1:Lcom/mongodb/internal/connection/InternalStreamConnection$2;
invokestatic com.mongodb.internal.connection.InternalStreamConnection$2.access$1:(Lcom/mongodb/internal/connection/InternalStreamConnection$2;)Lcom/mongodb/internal/connection/InternalStreamConnection;
getfield com.mongodb.internal.connection.InternalStreamConnection.description:Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
11: invokestatic com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)Lcom/mongodb/MongoException;
astore 4
start local 4 12: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$commandEventSender:Lcom/mongodb/internal/connection/CommandEventSender;
aload 4
invokeinterface com.mongodb.internal.connection.CommandEventSender.sendFailedEvent:(Ljava/lang/Throwable;)V
13: aload 4
athrow
end local 4 14: StackMap locals: int
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$commandEventSender:Lcom/mongodb/internal/connection/CommandEventSender;
aload 1
invokeinterface com.mongodb.internal.connection.CommandEventSender.sendSucceededEvent:(Lcom/mongodb/internal/connection/ResponseBuffers;)V
15: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.this$1:Lcom/mongodb/internal/connection/InternalStreamConnection$2;
invokestatic com.mongodb.internal.connection.InternalStreamConnection$2.access$1:(Lcom/mongodb/internal/connection/InternalStreamConnection$2;)Lcom/mongodb/internal/connection/InternalStreamConnection;
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$decoder:Lorg/bson/codecs/Decoder;
aload 1
aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$messageId:I
invokevirtual com.mongodb.internal.connection.InternalStreamConnection.getCommandResult:(Lorg/bson/codecs/Decoder;Lcom/mongodb/internal/connection/ResponseBuffers;I)Ljava/lang/Object;
astore 4
start local 4 16: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 4
aconst_null
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 end local 3 17: goto 24
StackMap locals: com.mongodb.internal.connection.InternalStreamConnection$2$1 com.mongodb.internal.connection.ResponseBuffers java.lang.Throwable
StackMap stack: java.lang.Throwable
18: astore 3
start local 3 19: aload 0
getfield com.mongodb.internal.connection.InternalStreamConnection$2$1.val$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 20: aload 1
invokevirtual com.mongodb.internal.connection.ResponseBuffers.close:()V
goto 25
21: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
22: aload 1
invokevirtual com.mongodb.internal.connection.ResponseBuffers.close:()V
23: aload 5
athrow
24: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.mongodb.internal.connection.ResponseBuffers.close:()V
25: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/mongodb/internal/connection/InternalStreamConnection$2$1;
0 26 1 responseBuffers Lcom/mongodb/internal/connection/ResponseBuffers;
0 26 2 t Ljava/lang/Throwable;
7 17 3 commandOk Z
12 14 4 commandFailureException Lcom/mongodb/MongoException;
16 17 4 result TT;
19 20 3 localThrowable Ljava/lang/Throwable;
Exception table:
from to target type
4 17 18 Class java.lang.Throwable
4 20 21 any
MethodParameters:
Name Flags
responseBuffers final
t final
public void onResult(java.lang.Object, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast com.mongodb.internal.connection.ResponseBuffers
aload 2
invokevirtual com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult:(Lcom/mongodb/internal/connection/ResponseBuffers;Ljava/lang/Throwable;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;
SourceFile: "InternalStreamConnection.java"
EnclosingMethod: com.mongodb.internal.connection.InternalStreamConnection$2.onResult:(Ljava/lang/Void;Ljava/lang/Throwable;)V
NestHost: com.mongodb.internal.connection.InternalStreamConnection
InnerClasses:
com.mongodb.internal.connection.InternalStreamConnection$2
com.mongodb.internal.connection.InternalStreamConnection$2$1