class com.mongodb.operation.CommandOperationHelper$15 implements com.mongodb.async.SingleResultCallback<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.CommandOperationHelper$15
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$CommandWriteTransformerAsync val$transformer;
descriptor: Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bson.BsonDocument val$command;
descriptor: Lorg/bson/BsonDocument;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.binding.AsyncWriteBinding val$binding;
descriptor: Lcom/mongodb/binding/AsyncWriteBinding;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.Function val$retryCommandModifier;
descriptor: Lcom/mongodb/Function;
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$CommandWriteTransformerAsync, org.bson.BsonDocument, com.mongodb.binding.AsyncWriteBinding, com.mongodb.Function, 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$CommandWriteTransformerAsync;Lorg/bson/BsonDocument;Lcom/mongodb/binding/AsyncWriteBinding;Lcom/mongodb/Function;Ljava/lang/String;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;)V
flags: (0x0000)
Code:
stack=2, locals=12, args_size=12
start local 0 0: aload 0
aload 1
putfield com.mongodb.operation.CommandOperationHelper$15.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
aload 2
putfield com.mongodb.operation.CommandOperationHelper$15.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
aload 0
aload 3
putfield com.mongodb.operation.CommandOperationHelper$15.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
aload 0
aload 4
putfield com.mongodb.operation.CommandOperationHelper$15.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;
aload 0
aload 5
putfield com.mongodb.operation.CommandOperationHelper$15.val$command:Lorg/bson/BsonDocument;
aload 0
aload 6
putfield com.mongodb.operation.CommandOperationHelper$15.val$binding:Lcom/mongodb/binding/AsyncWriteBinding;
aload 0
aload 7
putfield com.mongodb.operation.CommandOperationHelper$15.val$retryCommandModifier:Lcom/mongodb/Function;
aload 0
aload 8
putfield com.mongodb.operation.CommandOperationHelper$15.val$database:Ljava/lang/String;
aload 0
aload 9
putfield com.mongodb.operation.CommandOperationHelper$15.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
aload 10
putfield com.mongodb.operation.CommandOperationHelper$15.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
aload 11
putfield com.mongodb.operation.CommandOperationHelper$15.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$15;
MethodParameters:
Name Flags
val$callback final
val$oldSource final
val$oldConnection final
val$transformer final
val$command final
val$binding final
val$retryCommandModifier 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=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.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$15.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$15.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;
aload 1
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.operation.CommandOperationHelper$CommandWriteTransformerAsync.apply:(Ljava/lang/Object;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$15.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$15;
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$15.val$command:Lorg/bson/BsonDocument;
aload 1
invokestatic com.mongodb.operation.CommandOperationHelper.shouldAttemptToRetryWrite:(Lorg/bson/BsonDocument;Ljava/lang/Throwable;)Z
ifne 8
1: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$command:Lorg/bson/BsonDocument;
invokestatic com.mongodb.operation.CommandOperationHelper.isRetryWritesEnabled:(Lorg/bson/BsonDocument;)Z
ifeq 3
2: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$command: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
instanceof com.mongodb.MongoException
ifeq 5
4: aload 1
checkcast com.mongodb.MongoException
invokestatic com.mongodb.operation.CommandOperationHelper.transformWriteException:(Lcom/mongodb/MongoException;)Lcom/mongodb/MongoException;
goto 6
StackMap locals: com.mongodb.operation.CommandOperationHelper$15 java.lang.Throwable com.mongodb.async.SingleResultCallback
StackMap stack: com.mongodb.async.SingleResultCallback null
5: aload 1
6: StackMap locals: com.mongodb.operation.CommandOperationHelper$15 java.lang.Throwable com.mongodb.async.SingleResultCallback
StackMap stack: com.mongodb.async.SingleResultCallback null java.lang.Throwable
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
7: goto 13
8: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$oldConnection:Lcom/mongodb/connection/AsyncConnection;
invokeinterface com.mongodb.connection.AsyncConnection.release:()V
9: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$oldSource:Lcom/mongodb/binding/AsyncConnectionSource;
invokeinterface com.mongodb.binding.AsyncConnectionSource.release:()V
10: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$binding:Lcom/mongodb/binding/AsyncWriteBinding;
invokeinterface com.mongodb.binding.AsyncWriteBinding.getSessionContext:()Lcom/mongodb/session/SessionContext;
invokeinterface com.mongodb.session.SessionContext.hasActiveTransaction:()Z
ifeq 12
11: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$binding:Lcom/mongodb/binding/AsyncWriteBinding;
invokeinterface com.mongodb.binding.AsyncWriteBinding.getSessionContext:()Lcom/mongodb/session/SessionContext;
invokeinterface com.mongodb.session.SessionContext.unpinServerAddress:()V
12: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.mongodb.operation.CommandOperationHelper$15.retryableCommand:(Ljava/lang/Throwable;)V
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/mongodb/operation/CommandOperationHelper$15;
0 14 1 originalError Ljava/lang/Throwable;
0 14 2 releasingCallback Lcom/mongodb/async/SingleResultCallback<TR;>;
Signature: (Ljava/lang/Throwable;Lcom/mongodb/async/SingleResultCallback<TR;>;)V
MethodParameters:
Name Flags
originalError final
releasingCallback final
private void retryableCommand(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=13, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$retryCommandModifier:Lcom/mongodb/Function;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$command:Lorg/bson/BsonDocument;
invokeinterface com.mongodb.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.BsonDocument
astore 2
start local 2 1: aload 2
invokevirtual org.bson.BsonDocument.getFirstKey:()Ljava/lang/String;
aload 1
invokestatic com.mongodb.operation.CommandOperationHelper.logRetryExecute:(Ljava/lang/String;Ljava/lang/Throwable;)V
2: aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$binding:Lcom/mongodb/binding/AsyncWriteBinding;
new com.mongodb.operation.CommandOperationHelper$15$1
dup
aload 0
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$callback:Lcom/mongodb/async/SingleResultCallback;
aload 1
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$binding:Lcom/mongodb/binding/AsyncWriteBinding;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$database:Ljava/lang/String;
aload 2
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$commandResultDecoder:Lorg/bson/codecs/Decoder;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$15.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;
invokespecial com.mongodb.operation.CommandOperationHelper$15$1.<init>:(Lcom/mongodb/operation/CommandOperationHelper$15;Lcom/mongodb/async/SingleResultCallback;Ljava/lang/Throwable;Lcom/mongodb/binding/AsyncWriteBinding;Ljava/lang/String;Lorg/bson/BsonDocument;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;)V
invokestatic com.mongodb.operation.OperationHelper.withAsyncConnection:(Lcom/mongodb/binding/AsyncWriteBinding;Lcom/mongodb/operation/OperationHelper$AsyncCallableWithConnectionAndSource;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/operation/CommandOperationHelper$15;
0 4 1 originalError Ljava/lang/Throwable;
1 4 2 retryCommand Lorg/bson/BsonDocument;
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/AsyncWriteBinding;Lcom/mongodb/binding/AsyncConnectionSource;Lcom/mongodb/connection/AsyncConnection;Ljava/lang/String;Lcom/mongodb/ReadPreference;Lorg/bson/BsonDocument;Lorg/bson/FieldNameValidator;Lorg/bson/codecs/Decoder;Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformerAsync;Lcom/mongodb/Function;Lcom/mongodb/async/SingleResultCallback;)Lcom/mongodb/async/SingleResultCallback;
NestHost: com.mongodb.operation.CommandOperationHelper
InnerClasses:
com.mongodb.operation.CommandOperationHelper$15
com.mongodb.operation.CommandOperationHelper$15$1
abstract CommandWriteTransformerAsync = com.mongodb.operation.CommandOperationHelper$CommandWriteTransformerAsync of com.mongodb.operation.CommandOperationHelper
abstract AsyncCallableWithConnectionAndSource = com.mongodb.operation.OperationHelper$AsyncCallableWithConnectionAndSource of com.mongodb.operation.OperationHelper