public class TupleJid extends CollectionJid<Jid> implements ComparableKey<Object>
| Modifier and Type | Field and Description |
|---|---|
protected Jid[] |
tuple
A tuple of actors.
|
protected org.agilewiki.jactor.factory.ActorFactory[] |
tupleFactories
An array of actor types, one for each element in the tuple.
|
lenserializedBytes, serializedOffset| Constructor and Description |
|---|
TupleJid() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareKeyTo(Object o)
Compares element 0
|
int |
getSerializedLength()
Returns the number of bytes needed to serialize the persistent data.
|
protected org.agilewiki.jactor.factory.ActorFactory[] |
getTupleFactories()
Returns the element factories.
|
Jid |
iGet(int i)
Returns the ith JID component.
|
void |
iSetBytes(int i,
byte[] bytes)
Creates a JID actor and loads its serialized data.
|
void |
load(ReadableBytes readableBytes)
Load the serialized data into the JID.
|
protected void |
serialize(AppendableBytes appendableBytes)
Serialize the persistent data.
|
int |
size()
Returns the size of the collection.
|
change, loadLen, resolvePathname, saveLen, skipLenchanged, copyJID, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, getSerializedBytes, isJidEqual, isSerialized, readable, save, 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, waitsave, setContainerJidprotected org.agilewiki.jactor.factory.ActorFactory[] tupleFactories
protected Jid[] tuple
protected org.agilewiki.jactor.factory.ActorFactory[] getTupleFactories()
throws Exception
Exceptionpublic void iSetBytes(int i,
byte[] bytes)
throws Exception
iSetBytes in interface Collection<Jid>i - The index of the desired element.bytes - Holds the serialized data.Exception - Any exceptions thrown while processing the request.public int getSerializedLength()
throws Exception
getSerializedLength in interface _JidgetSerializedLength in class JidExceptionpublic int size()
throws Exception
size in interface Collection<Jid>Exceptionpublic Jid iGet(int i) throws Exception
iGet in interface Collection<Jid>i - The index of the element of interest.Exceptionprotected void serialize(AppendableBytes appendableBytes) throws Exception
public void load(ReadableBytes readableBytes) throws Exception
public int compareKeyTo(Object o) throws Exception
compareKeyTo in interface ComparableKey<Object>o - The comparison value.ExceptionCopyright © 2013. All Rights Reserved.