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.
|
len
serializedBytes, 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, skipLen
changed, copyJID, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, createSubordinate, getSerializedBytes, isJidEqual, isSerialized, readable, save, setContainerJid
acceptEvent, acceptRequest, getActorType, getAncestor, getExceptionHandler, getFactory, getMailbox, getMailboxFactory, getMatch, getParent, hasDataItem, haveEvents, initialize, initialize, initialize, initialize, initialize, requirements, responseFrom, send, send, sendEvent, setExceptionHandler, setInitialBufferCapacity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save, setContainerJid
protected org.agilewiki.jactor.factory.ActorFactory[] tupleFactories
protected Jid[] tuple
protected org.agilewiki.jactor.factory.ActorFactory[] getTupleFactories() throws Exception
Exception
public 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 _Jid
getSerializedLength
in class Jid
Exception
public int size() throws Exception
size
in interface Collection<Jid>
Exception
public Jid iGet(int i) throws Exception
iGet
in interface Collection<Jid>
i
- The index of the element of interest.Exception
protected 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.Exception
Copyright © 2013. All Rights Reserved.