public class UnionJid extends ScalarJid<String,Jid> implements Clearable, Reference
| Modifier and Type | Field and Description |
|---|---|
protected int |
factoryIndex |
protected org.agilewiki.jactor.factory.ActorFactory[] |
unionFactories |
protected Jid |
value |
serializedBytes, serializedOffset| Constructor and Description |
|---|
UnionJid() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the content.
|
protected int |
getFactoryIndex(String actorType) |
int |
getSerializedLength()
Returns the number of bytes needed to serialize the persistent data.
|
protected org.agilewiki.jactor.factory.ActorFactory[] |
getUnionFactories() |
Jid |
getValue()
Returns the value held by this component.
|
void |
load(ReadableBytes readableBytes)
Load the serialized data into the JID.
|
Boolean |
makeJidBytes(JidFactory jidFactory,
byte[] bytes)
Creates a JID actor and loads its serialized data, unless a JID actor is already present.
|
Boolean |
makeJidBytes(String actorType,
byte[] bytes)
Creates a JID actor and loads its serialized data, unless a JID actor is already present.
|
Boolean |
makeUnionBytes(Integer ndx,
byte[] bytes) |
Boolean |
makeUnionValue(Integer ndx)
Assign a value unless one is already present.
|
Boolean |
makeValue(JidFactory jidFactory)
Assign a value unless one is already present.
|
Boolean |
makeValue(String jidType)
Assign a value unless one is already present.
|
_Jid |
resolvePathname(String pathname)
Resolves a JID pathname, returning a JID actor or null.
|
protected void |
serialize(AppendableBytes appendableBytes)
Serialize the persistent data.
|
void |
setJidBytes(org.agilewiki.jactor.factory.ActorFactory jidFactory,
byte[] bytes)
Creates a JID actor and loads its serialized data.
|
void |
setJidBytes(String actorType,
byte[] bytes)
Creates a JID actor and loads its serialized data.
|
void |
setUnionBytes(Integer ndx,
byte[] bytes)
Creates a JID actor and loads its serialized data.
|
void |
setValue(org.agilewiki.jactor.factory.ActorFactory actorFactory)
Assign a value.
|
void |
setValue(Integer ndx) |
void |
setValue(String actorType)
Assign a value.
|
change, changed, 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, waitchange, save, setContainerJidprotected org.agilewiki.jactor.factory.ActorFactory[] unionFactories
protected int factoryIndex
protected Jid value
protected org.agilewiki.jactor.factory.ActorFactory[] getUnionFactories()
throws Exception
Exceptionpublic void load(ReadableBytes readableBytes) throws Exception
public int getSerializedLength()
throws Exception
getSerializedLength in interface _JidgetSerializedLength in class JidExceptionpublic void clear()
throws Exception
public void setValue(String actorType) throws Exception
Scalarpublic void setValue(org.agilewiki.jactor.factory.ActorFactory actorFactory)
throws Exception
Referencepublic void setJidBytes(String actorType, byte[] bytes) throws Exception
setJidBytes in interface ReferenceactorType - An actor type name.bytes - The serialized data.Exception - Any uncaught exception raised.public void setJidBytes(org.agilewiki.jactor.factory.ActorFactory jidFactory,
byte[] bytes)
throws Exception
setJidBytes in interface ReferencejidFactory - The actor type.bytes - The serialized data.Exception - Any uncaught exception raised.public void setUnionBytes(Integer ndx, byte[] bytes) throws Exception
ndx - The factory index.bytes - The serialized data.Exception - Any uncaught exception raised.public Boolean makeValue(String jidType) throws Exception
public Boolean makeValue(JidFactory jidFactory) throws Exception
public Boolean makeUnionValue(Integer ndx) throws Exception
ndx - The Make request.Exception - Any uncaught exception raised.public Boolean makeJidBytes(String actorType, byte[] bytes) throws Exception
makeJidBytes in interface ReferenceactorType - An actor type name.bytes - The serialized data.Exception - Any uncaught exception raised.public Boolean makeJidBytes(JidFactory jidFactory, byte[] bytes) throws Exception
makeJidBytes in interface ReferencejidFactory - The actor type.bytes - The serialized data.Exception - Any uncaught exception raised.public Boolean makeUnionBytes(Integer ndx, byte[] bytes) throws Exception
Exceptionpublic Jid getValue() throws Exception
Scalarprotected void serialize(AppendableBytes appendableBytes) throws Exception
public _Jid resolvePathname(String pathname) throws Exception
resolvePathname in interface _JidresolvePathname in class Jidpathname - A JID pathname.Exception - Any uncaught exception which occurred while processing the request.Copyright © 2013. All Rights Reserved.