class com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback implements com.mongodb.async.SingleResultCallback<org.bson.BsonDocument>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback
super_class: java.lang.Object
{
private final com.mongodb.connection.AsyncConnection connection;
descriptor: Lcom/mongodb/connection/AsyncConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.ServerCursor cursor;
descriptor: Lcom/mongodb/ServerCursor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.async.SingleResultCallback<java.util.List<T>> callback;
descriptor: Lcom/mongodb/async/SingleResultCallback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;
private final boolean tryNext;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final com.mongodb.operation.AsyncQueryBatchCursor this$0;
descriptor: Lcom/mongodb/operation/AsyncQueryBatchCursor;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mongodb.connection.AsyncConnection, com.mongodb.ServerCursor, com.mongodb.async.SingleResultCallback<java.util.List<T>>, );
descriptor: (Lcom/mongodb/operation/AsyncQueryBatchCursor;Lcom/mongodb/connection/AsyncConnection;Lcom/mongodb/ServerCursor;Lcom/mongodb/async/SingleResultCallback;Z)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=6
start local 0 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
putfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.this$0:Lcom/mongodb/operation/AsyncQueryBatchCursor;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 0
aload 2
putfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.connection:Lcom/mongodb/connection/AsyncConnection;
3: aload 0
aload 3
putfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.cursor:Lcom/mongodb/ServerCursor;
4: aload 0
aload 4
getstatic com.mongodb.operation.OperationHelper.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokestatic com.mongodb.internal.async.ErrorHandlingResultCallback.errorHandlingCallback:(Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/diagnostics/logging/Logger;)Lcom/mongodb/async/SingleResultCallback;
putfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
5: aload 0
iload 5
putfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.tryNext:Z
6: return
end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/operation/AsyncQueryBatchCursor$CommandResultSingleResultCallback;
0 7 2 connection Lcom/mongodb/connection/AsyncConnection;
0 7 3 cursor Lcom/mongodb/ServerCursor;
0 7 4 callback Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;
0 7 5 tryNext Z
Signature: (Lcom/mongodb/connection/AsyncConnection;Lcom/mongodb/ServerCursor;Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;Z)V
MethodParameters:
Name Flags
this$0 final
connection final
cursor final
callback final
tryNext final
public void onResult(org.bson.BsonDocument, java.lang.Throwable);
descriptor: (Lorg/bson/BsonDocument;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 9
1: aload 2
instanceof com.mongodb.MongoCommandException
ifeq 3
2: aload 2
checkcast com.mongodb.MongoCommandException
aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.cursor:Lcom/mongodb/ServerCursor;
invokestatic com.mongodb.operation.QueryHelper.translateCommandException:(Lcom/mongodb/MongoCommandException;Lcom/mongodb/ServerCursor;)Lcom/mongodb/MongoQueryException;
goto 4
3: StackMap locals:
StackMap stack:
aload 2
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 5: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.connection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.connection.AsyncConnection.release:()V
6: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.this$0:Lcom/mongodb/operation/AsyncQueryBatchCursor;
invokevirtual com.mongodb.operation.AsyncQueryBatchCursor.endOperationInProgress:()V
7: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.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 8: goto 14
9: StackMap locals:
StackMap stack:
aload 1
ldc "cursor"
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
10: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.connection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.connection.AsyncConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
11: invokestatic com.mongodb.operation.OperationHelper.getMoreCursorDocumentToQueryResult:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/QueryResult;
astore 3
start local 3 12: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.this$0:Lcom/mongodb/operation/AsyncQueryBatchCursor;
aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.this$0:Lcom/mongodb/operation/AsyncQueryBatchCursor;
aload 1
invokevirtual com.mongodb.operation.AsyncQueryBatchCursor.getPostBatchResumeTokenFromResponse:(Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
putfield com.mongodb.operation.AsyncQueryBatchCursor.postBatchResumeToken:Lorg/bson/BsonDocument;
13: aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.this$0:Lcom/mongodb/operation/AsyncQueryBatchCursor;
aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.connection:Lcom/mongodb/connection/AsyncConnection;
aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.callback:Lcom/mongodb/async/SingleResultCallback;
aload 3
aload 0
getfield com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.tryNext:Z
invokevirtual com.mongodb.operation.AsyncQueryBatchCursor.handleGetMoreQueryResult:(Lcom/mongodb/connection/AsyncConnection;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/connection/QueryResult;Z)V
end local 3 14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/mongodb/operation/AsyncQueryBatchCursor$CommandResultSingleResultCallback;
0 15 1 result Lorg/bson/BsonDocument;
0 15 2 t Ljava/lang/Throwable;
5 8 3 translatedException Ljava/lang/Throwable;
12 14 3 queryResult Lcom/mongodb/connection/QueryResult<TT;>;
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 org.bson.BsonDocument
aload 2
invokevirtual com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback.onResult:(Lorg/bson/BsonDocument;Ljava/lang/Throwable;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lcom/mongodb/async/SingleResultCallback<Lorg/bson/BsonDocument;>;
SourceFile: "AsyncQueryBatchCursor.java"
NestHost: com.mongodb.operation.AsyncQueryBatchCursor
InnerClasses:
private CommandResultSingleResultCallback = com.mongodb.operation.AsyncQueryBatchCursor$CommandResultSingleResultCallback of com.mongodb.operation.AsyncQueryBatchCursor