class com.mongodb.operation.CommandOperationHelper$13 implements com.mongodb.operation.OperationHelper$CallableWithConnectionAndSource<R>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.CommandOperationHelper$13
super_class: java.lang.Object
{
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 com.mongodb.operation.CommandOperationHelper$CommandWriteTransformer val$transformer;
descriptor: Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;
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
private final com.mongodb.binding.WriteBinding val$binding;
descriptor: Lcom/mongodb/binding/WriteBinding;
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
void <init>(com.mongodb.operation.CommandOperationHelper$CommandCreator, com.mongodb.operation.CommandOperationHelper$CommandWriteTransformer, java.lang.String, org.bson.FieldNameValidator, com.mongodb.ReadPreference, org.bson.codecs.Decoder, com.mongodb.binding.WriteBinding, com.mongodb.Function);
descriptor: (Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;Ljava/lang/String;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;Lcom/mongodb/binding/WriteBinding;Lcom/mongodb/Function;)V
flags: (0x0000)
Code:
stack=2, locals=9, args_size=9
start local 0 0: aload 0
aload 1
putfield com.mongodb.operation.CommandOperationHelper$13.val$commandCreator:Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;
aload 0
aload 2
putfield com.mongodb.operation.CommandOperationHelper$13.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;
aload 0
aload 3
putfield com.mongodb.operation.CommandOperationHelper$13.val$database:Ljava/lang/String;
aload 0
aload 4
putfield com.mongodb.operation.CommandOperationHelper$13.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
aload 5
putfield com.mongodb.operation.CommandOperationHelper$13.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
aload 6
putfield com.mongodb.operation.CommandOperationHelper$13.val$commandResultDecoder:Lorg/bson/codecs/Decoder;
aload 0
aload 7
putfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
aload 0
aload 8
putfield com.mongodb.operation.CommandOperationHelper$13.val$retryCommandModifier:Lcom/mongodb/Function;
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$13;
MethodParameters:
Name Flags
val$commandCreator final
val$transformer final
val$database final
val$fieldNameValidator final
val$readPreference final
val$commandResultDecoder final
val$binding final
val$retryCommandModifier final
public R call(com.mongodb.binding.ConnectionSource, com.mongodb.connection.Connection);
descriptor: (Lcom/mongodb/binding/ConnectionSource;Lcom/mongodb/connection/Connection;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=14, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$commandCreator:Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;
aload 1
invokeinterface com.mongodb.binding.ConnectionSource.getServerDescription:()Lcom/mongodb/connection/ServerDescription;
aload 2
invokeinterface com.mongodb.connection.Connection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokeinterface com.mongodb.operation.CommandOperationHelper$CommandCreator.create:(Lcom/mongodb/connection/ServerDescription;Lcom/mongodb/connection/ConnectionDescription;)Lorg/bson/BsonDocument;
astore 3
2: aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;
aload 2
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$database:Ljava/lang/String;
aload 3
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$readPreference:Lcom/mongodb/ReadPreference;
3: aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$commandResultDecoder:Lorg/bson/codecs/Decoder;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
invokeinterface com.mongodb.binding.WriteBinding.getSessionContext:()Lcom/mongodb/session/SessionContext;
4: invokeinterface com.mongodb.connection.Connection.command:(Ljava/lang/String;Lorg/bson/BsonDocument;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;Lcom/mongodb/session/SessionContext;)Ljava/lang/Object;
5: aload 2
6: invokeinterface com.mongodb.operation.CommandOperationHelper$CommandWriteTransformer.apply:(Ljava/lang/Object;Lcom/mongodb/connection/Connection;)Ljava/lang/Object;
astore 7
7: aload 2
invokeinterface com.mongodb.connection.Connection.release:()V
8: aload 7
areturn
9: StackMap locals: com.mongodb.operation.CommandOperationHelper$13 com.mongodb.binding.ConnectionSource com.mongodb.connection.Connection org.bson.BsonDocument
StackMap stack: com.mongodb.MongoException
astore 5
start local 5 10: aload 5
astore 4
start local 4 11: aload 3
aload 5
invokestatic com.mongodb.operation.CommandOperationHelper.shouldAttemptToRetryWrite:(Lorg/bson/BsonDocument;Ljava/lang/Throwable;)Z
ifne 15
12: aload 3
invokestatic com.mongodb.operation.CommandOperationHelper.isRetryWritesEnabled:(Lorg/bson/BsonDocument;)Z
ifeq 14
13: aload 3
invokevirtual org.bson.BsonDocument.getFirstKey:()Ljava/lang/String;
aload 5
invokestatic com.mongodb.operation.CommandOperationHelper.logUnableToRetry:(Ljava/lang/String;Ljava/lang/Throwable;)V
14: StackMap locals: com.mongodb.MongoException com.mongodb.MongoException
StackMap stack:
aload 4
invokestatic com.mongodb.operation.CommandOperationHelper.transformWriteException:(Lcom/mongodb/MongoException;)Lcom/mongodb/MongoException;
athrow
end local 5 15: StackMap locals:
StackMap stack:
aload 2
invokeinterface com.mongodb.connection.Connection.release:()V
goto 19
end local 4 16: StackMap locals: com.mongodb.operation.CommandOperationHelper$13 com.mongodb.binding.ConnectionSource com.mongodb.connection.Connection org.bson.BsonDocument
StackMap stack: java.lang.Throwable
astore 6
17: aload 2
invokeinterface com.mongodb.connection.Connection.release:()V
18: aload 6
athrow
start local 4 19: StackMap locals: com.mongodb.MongoException
StackMap stack:
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
invokeinterface com.mongodb.binding.WriteBinding.getSessionContext:()Lcom/mongodb/session/SessionContext;
invokeinterface com.mongodb.session.SessionContext.hasActiveTransaction:()Z
ifeq 21
20: aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
invokeinterface com.mongodb.binding.WriteBinding.getSessionContext:()Lcom/mongodb/session/SessionContext;
invokeinterface com.mongodb.session.SessionContext.unpinServerAddress:()V
21: StackMap locals:
StackMap stack:
aload 3
astore 5
start local 5 22: aload 4
astore 6
start local 6 23: aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
aload 6
new com.mongodb.operation.CommandOperationHelper$13$1
dup
aload 0
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$binding:Lcom/mongodb/binding/WriteBinding;
aload 6
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$retryCommandModifier:Lcom/mongodb/Function;
aload 5
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$transformer:Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$database:Ljava/lang/String;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$fieldNameValidator:Lorg/bson/FieldNameValidator;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$readPreference:Lcom/mongodb/ReadPreference;
aload 0
getfield com.mongodb.operation.CommandOperationHelper$13.val$commandResultDecoder:Lorg/bson/codecs/Decoder;
invokespecial com.mongodb.operation.CommandOperationHelper$13$1.<init>:(Lcom/mongodb/operation/CommandOperationHelper$13;Lcom/mongodb/binding/WriteBinding;Lcom/mongodb/MongoException;Lcom/mongodb/Function;Lorg/bson/BsonDocument;Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;Ljava/lang/String;Lorg/bson/FieldNameValidator;Lcom/mongodb/ReadPreference;Lorg/bson/codecs/Decoder;)V
invokestatic com.mongodb.operation.OperationHelper.withReleasableConnection:(Lcom/mongodb/binding/WriteBinding;Lcom/mongodb/MongoException;Lcom/mongodb/operation/OperationHelper$CallableWithConnectionAndSource;)Ljava/lang/Object;
areturn
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 24 0 this Lcom/mongodb/operation/CommandOperationHelper$13;
0 24 1 source Lcom/mongodb/binding/ConnectionSource;
0 24 2 connection Lcom/mongodb/connection/Connection;
1 24 3 command Lorg/bson/BsonDocument;
11 16 4 exception Lcom/mongodb/MongoException;
19 24 4 exception Lcom/mongodb/MongoException;
10 15 5 e Lcom/mongodb/MongoException;
22 24 5 originalCommand Lorg/bson/BsonDocument;
23 24 6 originalException Lcom/mongodb/MongoException;
Exception table:
from to target type
1 7 9 Class com.mongodb.MongoException
1 7 16 any
9 15 16 any
Signature: (Lcom/mongodb/binding/ConnectionSource;Lcom/mongodb/connection/Connection;)TR;
MethodParameters:
Name Flags
source final
connection final
}
Signature: Ljava/lang/Object;Lcom/mongodb/operation/OperationHelper$CallableWithConnectionAndSource<TR;>;
SourceFile: "CommandOperationHelper.java"
EnclosingMethod: com.mongodb.operation.CommandOperationHelper.executeRetryableCommand:(Lcom/mongodb/binding/WriteBinding;Ljava/lang/String;Lcom/mongodb/ReadPreference;Lorg/bson/FieldNameValidator;Lorg/bson/codecs/Decoder;Lcom/mongodb/operation/CommandOperationHelper$CommandCreator;Lcom/mongodb/operation/CommandOperationHelper$CommandWriteTransformer;Lcom/mongodb/Function;)Ljava/lang/Object;
NestHost: com.mongodb.operation.CommandOperationHelper
InnerClasses:
com.mongodb.operation.CommandOperationHelper$13
com.mongodb.operation.CommandOperationHelper$13$1
abstract CommandCreator = com.mongodb.operation.CommandOperationHelper$CommandCreator of com.mongodb.operation.CommandOperationHelper
abstract CommandWriteTransformer = com.mongodb.operation.CommandOperationHelper$CommandWriteTransformer of com.mongodb.operation.CommandOperationHelper
abstract CallableWithConnectionAndSource = com.mongodb.operation.OperationHelper$CallableWithConnectionAndSource of com.mongodb.operation.OperationHelper