public class RootJid extends ActorJid
len, value
serializedBytes, serializedOffset
Constructor and Description |
---|
RootJid() |
Modifier and Type | Method and Description |
---|---|
int |
getSerializedLength()
Returns the number of bytes needed to serialize the persistent data.
|
void |
load(byte[] bytes)
Assigns the serialized data to the RootJid.
|
int |
load(byte[] bytes,
int offset,
int length)
Load the serialized data into the RootJid.
|
protected int |
loadLen(ReadableBytes readableBytes)
Returns the size of the serialized data (exclusive of its length header).
|
int |
save(byte[] bytes,
int offset)
Save the serialized data into a byte array.
|
protected void |
saveLen(AppendableBytes appendableBytes)
The length is not saved.
|
void |
setContainerJid(_Jid containerJid)
Throws an UnsupportedOperationException,
as a RootJid does NOT have a container.
|
protected void |
skipLen(ReadableBytes readableBytes)
There is no length, so there is nothing to skip over.
|
clear, getValue, makeJidBytes, makeJidBytes, makeValue, makeValue, resolvePathname, serialize, setBytes, setBytes, setJidBytes, setJidBytes, setValue, setValue
change, load
changed, copyJID, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, getSerializedBytes, isJidEqual, isSerialized, readable, save
acceptEvent, acceptRequest, getActorType, getAncestor, getExceptionHandler, getFactory, getMailbox, getMailboxFactory, getMatch, getParent, hasDataItem, haveEvents, initialize, initialize, initialize, initialize, initialize, requirements, responseFrom, send, send, sendEvent, setExceptionHandler, setInitialBufferCapacity
public int save(byte[] bytes, int offset) throws Exception
bytes
- Where the serialized data is to be saved.offset
- Location of the serialized data.Exception
public int load(byte[] bytes, int offset, int length) throws Exception
bytes
- A mutable array holding the serialized data.offset
- Position of the serialized data.length
- Length of the serialized dataException
public void load(byte[] bytes) throws Exception
bytes
- Holds the immutable serialized data.
(And nothing else.)Exception
public void setContainerJid(_Jid containerJid)
setContainerJid
in interface _Jid
setContainerJid
in class Jid
containerJid
- The container, or null.protected int loadLen(ReadableBytes readableBytes)
loadLen
in class VLenScalarJid<String,Jid>
readableBytes
- Holds the serialized data.protected void skipLen(ReadableBytes readableBytes)
skipLen
in class VLenScalarJid<String,Jid>
readableBytes
- Holds the serialized data.protected void saveLen(AppendableBytes appendableBytes)
saveLen
in class VLenScalarJid<String,Jid>
appendableBytes
- The object written to.public int getSerializedLength()
getSerializedLength
in interface _Jid
getSerializedLength
in class VLenScalarJid<String,Jid>
Copyright © 2013. All Rights Reserved.