public abstract class VLenScalarJid<SET_TYPE,RESPONSE_TYPE> extends ScalarJid<SET_TYPE,RESPONSE_TYPE> implements Clearable
| Modifier and Type | Field and Description |
|---|---|
protected int |
len
The size of the serialized (exclusive of its length header).
|
protected RESPONSE_TYPE |
value
Holds the value, or null.
|
serializedBytes, serializedOffset| Constructor and Description |
|---|
VLenScalarJid() |
| Modifier and Type | Method and Description |
|---|---|
void |
change(int lengthChange)
Process a change in the persistent data.
|
void |
clear()
Clear the content.
|
int |
getSerializedLength()
Returns the number of bytes needed to serialize the persistent data.
|
void |
load(ReadableBytes readableBytes)
Assigns the serialized data to the JID.
|
protected int |
loadLen(ReadableBytes readableBytes)
Returns the size of the serialized data (exclusive of its length header).
|
protected abstract Boolean |
makeValue(SET_TYPE v)
Assign a value unless one is already present.
|
protected void |
saveLen(AppendableBytes appendableBytes)
Writes the size of the serialized data (exclusive of its length header).
|
protected void |
skipLen(ReadableBytes readableBytes)
Skip over the length at the beginning of the serialized data.
|
changed, copyJID, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, getSerializedBytes, isJidEqual, isSerialized, readable, resolvePathname, save, serialize, setContainerJidacceptEvent, acceptRequest, getActorType, getAncestor, getExceptionHandler, getFactory, getMailbox, getMailboxFactory, getMatch, getParent, hasDataItem, haveEvents, initialize, initialize, initialize, initialize, initialize, requirements, responseFrom, send, send, sendEvent, setExceptionHandler, setInitialBufferCapacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolvePathname, save, setContainerJidprotected RESPONSE_TYPE value
protected int len
protected abstract Boolean makeValue(SET_TYPE v) throws Exception
v - The value.Exception - Any uncaught exception raised.public void clear()
throws Exception
public int getSerializedLength()
getSerializedLength in interface _JidgetSerializedLength in class Jidprotected int loadLen(ReadableBytes readableBytes)
readableBytes - Holds the serialized data.protected void saveLen(AppendableBytes appendableBytes)
appendableBytes - The object written to.protected void skipLen(ReadableBytes readableBytes)
readableBytes - Holds the serialized data.public void change(int lengthChange)
throws Exception
Copyright © 2013. All Rights Reserved.