Package com.mongodb.internal.connection
Class ResponseBuffers
- java.lang.Object
 - 
- com.mongodb.internal.connection.ResponseBuffers
 
 
- 
- All Implemented Interfaces:
 java.io.Closeable,java.lang.AutoCloseable
@Deprecated(since="2021-05-27") public class ResponseBuffers extends java.lang.Object implements java.io.CloseableDeprecated. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.ByteBufgetBodyByteBuffer()Deprecated.Returns a read-only buffer containing the response body.ReplyHeadergetReplyHeader()Deprecated.Gets the reply header.voidreset()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
getReplyHeader
public ReplyHeader getReplyHeader()
Deprecated.Gets the reply header.- Returns:
 - the reply header
 
 
- 
getBodyByteBuffer
public ByteBuf getBodyByteBuffer()
Deprecated.Returns a read-only buffer containing the response body. Care should be taken to not use the returned buffer after this instance has been closed.- Returns:
 - a read-only buffer containing the response body
 
 
- 
reset
public void reset()
Deprecated. 
- 
close
public void close()
Deprecated.- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable
 
 - 
 
 -