public interface VersionedPersistable extends Persistable
Persistable
that is used by some persistence service that provides automatic versioning.Modifier and Type | Method and Description |
---|---|
void |
read(long version,
ByteBuffer buffer)
Reads the object from the given
ByteBuffer .Upon return from this method, the buffer's position will have advanced past the read data. |
read, size, write
void read(long version, ByteBuffer buffer)
ByteBuffer
.position
will have advanced past the read data.version
- The version of the object's persisted data.buffer
- The buffer from which the object is to be read.