class com.mongodb.operation.CommandOperationHelper$10 implements com.mongodb.async.SingleResultCallback<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.CommandOperationHelper$10
super_class: java.lang.Object
{
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.binding.AsyncConnectionSource val$oldSource;
descriptor: Lcom/mongodb/binding/AsyncConnectionSource;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.connection.AsyncConnection val$oldConnection;
descriptor: Lcom/mongodb/connection/AsyncConnection;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.operation.CommandOperationHelper$CommandReadTransformerAsync val$transformer;
descriptor: Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final boolean val$retryReads;
descriptor: Z
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bson.BsonDocument val$originalCommand;
descriptor: Lorg/bson/BsonDocument;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.binding.AsyncReadBinding val$binding;
descriptor: Lcom/mongodb/binding/AsyncReadBinding;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.operation.CommandOperationHelper$CommandCreator val$commandCreator;
descriptor: Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.lang.String val$database;
descriptor: Ljava/lang/String;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bson.FieldNameValidator val$fieldNameValidator;
descriptor: Lorg/bson/FieldNameValidator;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.ReadPreference val$readPreference;
descriptor: Lcom/mongodb/ReadPreference;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bson.codecs.Decoder val$commandResultDecoder;
descriptor: Lorg/bson/codecs/Decoder;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mongodb.async.SingleResultCallback, com.mongodb.binding.AsyncConnectionSource, com.mongodb.connection.AsyncConnection, com.mongodb.operation.CommandOperationHelper$CommandReadTransformerAsync, boolean, org.bson.BsonDocument, com.mongodb.binding.AsyncReadBinding, com.mongodb.operation.CommandOperationHelper$CommandCreator, java.lang.String, org.bson.FieldNameValidator, com.mongodb.ReadPreference, org.bson.codecs.Decoder);
descriptor: (Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/binding/AsyncConnectionSource;Lcom/mongodb/connection/AsyncConnection;Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;ZLorg/bson/BsonDocument;Lcom/mongodb/binding/AsyncReadBinding;Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;Ljava/lang/String;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;)V
flags: (0x0000)
Code:
stack=2, locals=13, args_size=13
start local 0 0: aload 0
aload 1
putfield com.mongodb.operation.CommandOperationHelper$10.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
aload 2
putfield com.mongodb.operation.CommandOperationHelper$10.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
aload 0
aload 3
putfield com.mongodb.operation.CommandOperationHelper$10.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
aload 0
aload 4
putfield com.mongodb.operation.CommandOperationHelper$10.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;
aload 0
iload 5
putfield com.mongodb.operation.CommandOperationHelper$10.val$retryReads:Z
aload 0
aload 6
putfield com.mongodb.operation.CommandOperationHelper$10.val$originalCommand:Lorg/bson/BsonDocument;
aload 0
aload 7
putfield com.mongodb.operation.CommandOperationHelper$10.val$binding:Lcom/mongodb/binding/AsyncReadBinding;
aload 0
aload 8
putfield com.mongodb.operation.CommandOperationHelper$10.val$commandCreator:Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;
aload 0
aload 9
putfield com.mongodb.operation.CommandOperationHelper$10.val$database:Ljava/lang/String;
aload 0
aload 10
putfield com.mongodb.operation.CommandOperationHelper$10.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
aload 11
putfield com.mongodb.operation.CommandOperationHelper$10.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
aload 12
putfield com.mongodb.operation.CommandOperationHelper$10.val$commandResultDecoder: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/operation/CommandOperationHelper$10;
MethodParameters:
Name Flags
val$callback final
val$oldSource final
val$oldConnection final
val$transformer final
val$retryReads final
val$originalCommand final
val$binding final
val$commandCreator final
val$database final
val$fieldNameValidator final
val$readPreference final
val$commandResultDecoder final
public void onResult(T, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
invokestatic com.mongodb.operation.OperationHelper.releasingCallback:(Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/binding/AsyncConnectionSource;Lcom/mongodb/connection/AsyncConnection;)Lcom/mongodb/async/SingleResultCallback;
astore 3
start local 3 1: aload 2
ifnull 4
2: aload 0
aload 2
aload 3
invokevirtual com.mongodb.operation.CommandOperationHelper$10.checkRetryableException:(Ljava/lang/Throwable;Lcom/mongodb/async/SingleResultCallback;)V
3: goto 8
4: StackMap locals: com.mongodb.async.SingleResultCallback
StackMap stack:
aload 3
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;
aload 1
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.operation.CommandOperationHelper$CommandReadTransformerAsync.apply:(Ljava/lang/Object;Lcom/mongodb/binding/AsyncConnectionSource;Lcom/mongodb/connection/AsyncConnection;)Ljava/lang/Object;
aconst_null
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 4
start local 4 7: aload 0
aload 4
aload 3
invokevirtual com.mongodb.operation.CommandOperationHelper$10.checkRetryableException:(Ljava/lang/Throwable;Lcom/mongodb/async/SingleResultCallback;)V
end local 4 8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/operation/CommandOperationHelper$10;
0 9 1 result TT;
0 9 2 originalError Ljava/lang/Throwable;
1 9 3 releasingCallback Lcom/mongodb/async/SingleResultCallback<TR;>;
7 8 4 transformError Ljava/lang/Throwable;
Exception table:
from to target type
4 5 6 Class java.lang.Throwable
Signature: (TT;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
result final
originalError final
private void checkRetryableException(java.lang.Throwable, com.mongodb.async.SingleResultCallback<R>);
descriptor: (Ljava/lang/Throwable;Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$retryReads:Z
aload 1
invokestatic com.mongodb.operation.CommandOperationHelper.shouldAttemptToRetryRead:(ZLjava/lang/Throwable;)Z
ifne 5
1: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$retryReads:Z
ifeq 3
2: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$originalCommand:Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.getFirstKey:()Ljava/lang/String;
aload 1
invokestatic com.mongodb.operation.CommandOperationHelper.logUnableToRetry:(Ljava/lang/String;Ljava/lang/Throwable;)V
3: StackMap locals:
StackMap stack:
aload 2
aconst_null
aload 1
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
invokeinterface com.mongodb.binding.AsyncConnectionSource.release:()V
6: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.connection.AsyncConnection.release:()V
7: aload 0
aload 1
invokevirtual com.mongodb.operation.CommandOperationHelper$10.retryableCommand:(Ljava/lang/Throwable;)V
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/operation/CommandOperationHelper$10;
0 9 1 originalError Ljava/lang/Throwable;
0 9 2 callback Lcom/mongodb/async/SingleResultCallback<TR;>;
Signature: (Ljava/lang/Throwable;Lcom/mongodb/async/SingleResultCallback<TR;>;)V
MethodParameters:
Name Flags
originalError final
callback final
private void retryableCommand(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=13, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$binding:Lcom/mongodb/binding/AsyncReadBinding;
new com.mongodb.operation.CommandOperationHelper$10$1
dup
aload 0
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 1
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$binding:Lcom/mongodb/binding/AsyncReadBinding;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$commandCreator:Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$database:Ljava/lang/String;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$commandResultDecoder:Lorg/bson/codecs/Decoder;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$10.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;
invokespecial com.mongodb.operation.CommandOperationHelper$10$1.<init>:(Lcom/mongodb/operation/CommandOperationHelper$10;Lcom/mongodb/async/SingleResultCallback;Ljava/lang/Throwable;Lcom/mongodb/binding/AsyncReadBinding;Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;Ljava/lang/String;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;)V
invokestatic com.mongodb.operation.OperationHelper.withAsyncReadConnection:(Lcom/mongodb/binding/AsyncReadBinding;Lcom/mongodb/operation/OperationHelper$AsyncCallableWithConnectionAndSource;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/CommandOperationHelper$10;
0 2 1 originalError Ljava/lang/Throwable;
MethodParameters:
Name Flags
originalError final
}
Signature: Ljava/lang/Object;Lcom/mongodb/async/SingleResultCallback<TT;>;
SourceFile: "CommandOperationHelper.java"
EnclosingMethod: com.mongodb.operation.CommandOperationHelper.createCommandCallback:(Lcom/mongodb/binding/AsyncReadBinding;Lcom/mongodb/binding/AsyncConnectionSource;Lcom/mongodb/connection/AsyncConnection;Ljava/lang/String;Lcom/mongodb/ReadPreference;Lorg/bson/BsonDocument;Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;Lorg/bson/FieldNameValidator;Lorg/bson/codecs/Decoder;Lcom/mongodb/operation/CommandOperationHelper$CommandReadTransformerAsync;ZLcom/mongodb/async/SingleResultCallback;)Lcom/mongodb/async/SingleResultCallback;
NestHost: com.mongodb.operation.CommandOperationHelper
InnerClasses:
com.mongodb.operation.CommandOperationHelper$10
com.mongodb.operation.CommandOperationHelper$10$1
abstract CommandCreator = com.mongodb.operation.CommandOperationHelper$CommandCreator of com.mongodb.operation.CommandOperationHelper
abstract CommandReadTransformerAsync = com.mongodb.operation.CommandOperationHelper$CommandReadTransformerAsync of com.mongodb.operation.CommandOperationHelper
abstract AsyncCallableWithConnectionAndSource = com.mongodb.operation.OperationHelper$AsyncCallableWithConnectionAndSource of com.mongodb.operation.OperationHelper