public final class com.mongodb.internal.connection.ReadConcernHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.connection.ReadConcernHelper
super_class: java.lang.Object
{
public static org.bson.BsonDocument getReadConcernDocument(com.mongodb.session.SessionContext);
descriptor: (Lcom/mongodb/session/SessionContext;)Lorg/bson/BsonDocument;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: ldc "sessionContext"
aload 0
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
astore 1
start local 1 2: aload 0
invokeinterface com.mongodb.session.SessionContext.getReadConcern:()Lcom/mongodb/ReadConcern;
invokevirtual com.mongodb.ReadConcern.getLevel:()Lcom/mongodb/ReadConcernLevel;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 1
ldc "level"
new org.bson.BsonString
dup
aload 2
invokevirtual com.mongodb.ReadConcernLevel.getValue:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
5: StackMap locals: org.bson.BsonDocument com.mongodb.ReadConcernLevel
StackMap stack:
aload 0
invokestatic com.mongodb.internal.connection.ReadConcernHelper.shouldAddAfterClusterTime:(Lcom/mongodb/session/SessionContext;)Z
ifeq 7
6: aload 1
ldc "afterClusterTime"
aload 0
invokeinterface com.mongodb.session.SessionContext.getOperationTime:()Lorg/bson/BsonTimestamp;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 sessionContext Lcom/mongodb/session/SessionContext;
2 8 1 readConcernDocument Lorg/bson/BsonDocument;
3 8 2 level Lcom/mongodb/ReadConcernLevel;
MethodParameters:
Name Flags
sessionContext final
private static boolean shouldAddAfterClusterTime(com.mongodb.session.SessionContext);
descriptor: (Lcom/mongodb/session/SessionContext;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface com.mongodb.session.SessionContext.isCausallyConsistent:()Z
ifeq 1
aload 0
invokeinterface com.mongodb.session.SessionContext.getOperationTime:()Lorg/bson/BsonTimestamp;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sessionContext Lcom/mongodb/session/SessionContext;
MethodParameters:
Name Flags
sessionContext final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/ReadConcernHelper;
}
SourceFile: "ReadConcernHelper.java"