Package org.apache.zookeeper.server
Class ByteBufferRequestRecord
- java.lang.Object
-
- org.apache.zookeeper.server.ByteBufferRequestRecord
-
- All Implemented Interfaces:
RequestRecord
public class ByteBufferRequestRecord extends Object implements RequestRecord
-
-
Constructor Summary
Constructors Constructor Description ByteBufferRequestRecord(ByteBuffer request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
limit()
byte[]
readBytes()
<T extends Record>
TreadRecord(Supplier<T> constructor)
-
-
-
Constructor Detail
-
ByteBufferRequestRecord
public ByteBufferRequestRecord(ByteBuffer request)
-
-
Method Detail
-
readRecord
public <T extends Record> T readRecord(Supplier<T> constructor) throws IOException
- Specified by:
readRecord
in interfaceRequestRecord
- Throws:
IOException
-
readBytes
public byte[] readBytes()
- Specified by:
readBytes
in interfaceRequestRecord
-
limit
public int limit()
- Specified by:
limit
in interfaceRequestRecord
-
-