Package org.apache.zookeeper.server
Interface RequestRecord
-
- All Known Implementing Classes:
ByteBufferRequestRecord,SimpleRequestRecord
public interface RequestRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RequestRecordfromBytes(byte[] bytes)static RequestRecordfromBytes(ByteBuffer buffer)static RequestRecordfromRecord(Record record)intlimit()byte[]readBytes()<T extends Record>
TreadRecord(Supplier<T> clazz)
-
-
-
Method Detail
-
fromBytes
static RequestRecord fromBytes(ByteBuffer buffer)
-
fromBytes
static RequestRecord fromBytes(byte[] bytes)
-
fromRecord
static RequestRecord fromRecord(Record record)
-
readRecord
<T extends Record> T readRecord(Supplier<T> clazz) throws IOException
- Throws:
IOException
-
readBytes
byte[] readBytes()
-
limit
int limit()
-
-