class com.mongodb.internal.connection.SendMessageCallback<T> implements com.mongodb.async.SingleResultCallback<java.lang.Void>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.SendMessageCallback
super_class: java.lang.Object
{
private final org.bson.io.OutputBuffer buffer;
descriptor: Lorg/bson/io/OutputBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.connection.InternalConnection connection;
descriptor: Lcom/mongodb/internal/connection/InternalConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.async.SingleResultCallback<com.mongodb.internal.connection.ResponseBuffers> receiveMessageCallback;
descriptor: Lcom/mongodb/async/SingleResultCallback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;
private final int requestId;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.connection.RequestMessage message;
descriptor: Lcom/mongodb/internal/connection/RequestMessage;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.event.CommandListener commandListener;
descriptor: Lcom/mongodb/event/CommandListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long startTimeNanos;
descriptor: J
flags: (0x0012) ACC_PRIVATE, 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 java.lang.String commandName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(com.mongodb.internal.connection.InternalConnection, org.bson.io.OutputBuffer, com.mongodb.internal.connection.RequestMessage, java.lang.String, long, com.mongodb.event.CommandListener, com.mongodb.async.SingleResultCallback<T>, com.mongodb.async.SingleResultCallback<com.mongodb.internal.connection.ResponseBuffers>);
descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lorg/bson/io/OutputBuffer;Lcom/mongodb/internal/connection/RequestMessage;Ljava/lang/String;JLcom/mongodb/event/CommandListener;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0000)
Code:
stack=11, locals=10, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 7 start local 8 start local 9 0: aload 0
aload 1
aload 2
aload 3
aload 3
invokevirtual com.mongodb.internal.connection.RequestMessage.getId:()I
aload 4
lload 5
aload 7
aload 8
aload 9
invokespecial com.mongodb.internal.connection.SendMessageCallback.<init>:(Lcom/mongodb/internal/connection/InternalConnection;Lorg/bson/io/OutputBuffer;Lcom/mongodb/internal/connection/RequestMessage;ILjava/lang/String;JLcom/mongodb/event/CommandListener;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/async/SingleResultCallback;)V
1: return
end local 9 end local 8 end local 7 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/SendMessageCallback<TT;>;
0 2 1 connection Lcom/mongodb/internal/connection/InternalConnection;
0 2 2 buffer Lorg/bson/io/OutputBuffer;
0 2 3 message Lcom/mongodb/internal/connection/RequestMessage;
0 2 4 commandName Ljava/lang/String;
0 2 5 startTimeNanos J
0 2 7 commandListener Lcom/mongodb/event/CommandListener;
0 2 8 callback Lcom/mongodb/async/SingleResultCallback<TT;>;
0 2 9 receiveMessageCallback Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;
Signature: (Lcom/mongodb/internal/connection/InternalConnection;Lorg/bson/io/OutputBuffer;Lcom/mongodb/internal/connection/RequestMessage;Ljava/lang/String;JLcom/mongodb/event/CommandListener;Lcom/mongodb/async/SingleResultCallback<TT;>;Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;)V
MethodParameters:
Name Flags
connection final
buffer final
message final
commandName final
startTimeNanos final
commandListener final
callback final
receiveMessageCallback final
void <init>(com.mongodb.internal.connection.InternalConnection, org.bson.io.OutputBuffer, com.mongodb.internal.connection.RequestMessage, int, java.lang.String, long, com.mongodb.event.CommandListener, com.mongodb.async.SingleResultCallback<T>, com.mongodb.async.SingleResultCallback<com.mongodb.internal.connection.ResponseBuffers>);
descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lorg/bson/io/OutputBuffer;Lcom/mongodb/internal/connection/RequestMessage;ILjava/lang/String;JLcom/mongodb/event/CommandListener;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0000)
Code:
stack=3, locals=11, args_size=10
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 8 start local 9 start local 10 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield com.mongodb.internal.connection.SendMessageCallback.buffer:Lorg/bson/io/OutputBuffer;
2: aload 0
aload 1
putfield com.mongodb.internal.connection.SendMessageCallback.connection:Lcom/mongodb/internal/connection/InternalConnection;
3: aload 0
aload 3
putfield com.mongodb.internal.connection.SendMessageCallback.message:Lcom/mongodb/internal/connection/RequestMessage;
4: aload 0
aload 5
putfield com.mongodb.internal.connection.SendMessageCallback.commandName:Ljava/lang/String;
5: aload 0
aload 8
putfield com.mongodb.internal.connection.SendMessageCallback.commandListener:Lcom/mongodb/event/CommandListener;
6: aload 0
lload 6
putfield com.mongodb.internal.connection.SendMessageCallback.startTimeNanos:J
7: aload 0
aload 9
putfield com.mongodb.internal.connection.SendMessageCallback.callback:Lcom/mongodb/async/SingleResultCallback;
8: aload 0
aload 10
putfield com.mongodb.internal.connection.SendMessageCallback.receiveMessageCallback:Lcom/mongodb/async/SingleResultCallback;
9: aload 0
iload 4
putfield com.mongodb.internal.connection.SendMessageCallback.requestId:I
10: return
end local 10 end local 9 end local 8 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/internal/connection/SendMessageCallback<TT;>;
0 11 1 connection Lcom/mongodb/internal/connection/InternalConnection;
0 11 2 buffer Lorg/bson/io/OutputBuffer;
0 11 3 message Lcom/mongodb/internal/connection/RequestMessage;
0 11 4 requestId I
0 11 5 commandName Ljava/lang/String;
0 11 6 startTimeNanos J
0 11 8 commandListener Lcom/mongodb/event/CommandListener;
0 11 9 callback Lcom/mongodb/async/SingleResultCallback<TT;>;
0 11 10 receiveMessageCallback Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;
Signature: (Lcom/mongodb/internal/connection/InternalConnection;Lorg/bson/io/OutputBuffer;Lcom/mongodb/internal/connection/RequestMessage;ILjava/lang/String;JLcom/mongodb/event/CommandListener;Lcom/mongodb/async/SingleResultCallback<TT;>;Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/internal/connection/ResponseBuffers;>;)V
MethodParameters:
Name Flags
connection final
buffer final
message final
requestId final
commandName final
startTimeNanos final
commandListener final
callback final
receiveMessageCallback final
public void onResult(java.lang.Void, java.lang.Throwable);
descriptor: (Ljava/lang/Void;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.buffer:Lorg/bson/io/OutputBuffer;
invokevirtual org.bson.io.OutputBuffer.close:()V
1: aload 2
ifnull 8
2: aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.commandListener:Lcom/mongodb/event/CommandListener;
ifnull 6
3: aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.message:Lcom/mongodb/internal/connection/RequestMessage;
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.commandName:Ljava/lang/String;
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.connection:Lcom/mongodb/internal/connection/InternalConnection;
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokestatic java.lang.System.nanoTime:()J
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.startTimeNanos:J
lsub
aload 2
4: aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.commandListener:Lcom/mongodb/event/CommandListener;
5: invokestatic com.mongodb.internal.connection.ProtocolHelper.sendCommandFailedEvent:(Lcom/mongodb/internal/connection/RequestMessage;Ljava/lang/String;Lcom/mongodb/connection/ConnectionDescription;JLjava/lang/Throwable;Lcom/mongodb/event/CommandListener;)V
6: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aconst_null
aload 2
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.connection:Lcom/mongodb/internal/connection/InternalConnection;
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.requestId:I
aload 0
getfield com.mongodb.internal.connection.SendMessageCallback.receiveMessageCallback:Lcom/mongodb/async/SingleResultCallback;
invokeinterface com.mongodb.internal.connection.InternalConnection.receiveMessageAsync:(ILcom/mongodb/async/SingleResultCallback;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/internal/connection/SendMessageCallback<TT;>;
0 10 1 result Ljava/lang/Void;
0 10 2 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
result 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 java.lang.Void
aload 2
invokevirtual com.mongodb.internal.connection.SendMessageCallback.onResult:(Ljava/lang/Void;Ljava/lang/Throwable;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;
SourceFile: "SendMessageCallback.java"