public class com.mongodb.internal.connection.ResponseBuffers implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.internal.connection.ResponseBuffers
super_class: java.lang.Object
{
private final com.mongodb.internal.connection.ReplyHeader ;
descriptor: Lcom/mongodb/internal/connection/ReplyHeader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bson.ByteBuf bodyByteBuffer;
descriptor: Lorg/bson/ByteBuf;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bodyByteBufferStartPosition;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isClosed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void (com.mongodb.internal.connection.ReplyHeader, org.bson.ByteBuf);
descriptor: (Lcom/mongodb/internal/connection/ReplyHeader;Lorg/bson/ByteBuf;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.internal.connection.ResponseBuffers.replyHeader:Lcom/mongodb/internal/connection/ReplyHeader;
2: aload 0
aload 2
putfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBuffer:Lorg/bson/ByteBuf;
3: aload 0
aload 2
ifnonnull 4
iconst_0
goto 5
StackMap locals: com.mongodb.internal.connection.ResponseBuffers com.mongodb.internal.connection.ReplyHeader org.bson.ByteBuf
StackMap stack: com.mongodb.internal.connection.ResponseBuffers
4: aload 2
invokeinterface org.bson.ByteBuf.position:()I
StackMap locals: com.mongodb.internal.connection.ResponseBuffers com.mongodb.internal.connection.ReplyHeader org.bson.ByteBuf
StackMap stack: com.mongodb.internal.connection.ResponseBuffers int
5: putfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBufferStartPosition:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
0 7 1 replyHeader Lcom/mongodb/internal/connection/ReplyHeader;
0 7 2 bodyByteBuffer Lorg/bson/ByteBuf;
MethodParameters:
Name Flags
replyHeader final
bodyByteBuffer final
public com.mongodb.internal.connection.ReplyHeader ();
descriptor: ()Lcom/mongodb/internal/connection/ReplyHeader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.replyHeader:Lcom/mongodb/internal/connection/ReplyHeader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
<T extends org.bson.BsonDocument> T getResponseDocument(int, org.bson.codecs.Decoder<T>);
descriptor: (ILorg/bson/codecs/Decoder;)Lorg/bson/BsonDocument;
flags: (0x0000)
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.internal.connection.ReplyMessage
dup
aload 0
aload 2
iload 1
i2l
invokespecial com.mongodb.internal.connection.ReplyMessage.<init>:(Lcom/mongodb/internal/connection/ResponseBuffers;Lorg/bson/codecs/Decoder;J)V
astore 3
start local 3 1: aload 0
invokevirtual com.mongodb.internal.connection.ResponseBuffers.reset:()V
2: aload 3
invokevirtual com.mongodb.internal.connection.ReplyMessage.getDocuments:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.BsonDocument
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
0 3 1 messageId I
0 3 2 decoder Lorg/bson/codecs/Decoder<TT;>;
1 3 3 replyMessage Lcom/mongodb/internal/connection/ReplyMessage<TT;>;
Signature: <T:Lorg/bson/BsonDocument;>(ILorg/bson/codecs/Decoder<TT;>;)TT;
MethodParameters:
Name Flags
messageId final
decoder final
public org.bson.ByteBuf getBodyByteBuffer();
descriptor: ()Lorg/bson/ByteBuf;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBuffer:Lorg/bson/ByteBuf;
invokeinterface org.bson.ByteBuf.asReadOnly:()Lorg/bson/ByteBuf;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBuffer:Lorg/bson/ByteBuf;
aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBufferStartPosition:I
invokeinterface org.bson.ByteBuf.position:(I)Lorg/bson/ByteBuf;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.isClosed:Z
ifne 4
1: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBuffer:Lorg/bson/ByteBuf;
ifnull 3
2: aload 0
getfield com.mongodb.internal.connection.ResponseBuffers.bodyByteBuffer:Lorg/bson/ByteBuf;
invokeinterface org.bson.ByteBuf.release:()V
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.mongodb.internal.connection.ResponseBuffers.isClosed:Z
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/internal/connection/ResponseBuffers;
}
SourceFile: "ResponseBuffers.java"