public class Jid extends org.agilewiki.jactor.lpc.JLPCActor implements _Jid
Modifier and Type | Field and Description |
---|---|
protected byte[] |
serializedBytes
Holds the serialized data.
|
protected int |
serializedOffset
The start of the serialized data.
|
Constructor and Description |
---|
Jid() |
Modifier and Type | Method and Description |
---|---|
void |
change(int lengthChange)
Process a change in the persistent data.
|
protected void |
changed(int lengthChange)
Notification that the persistent data has changed.
|
org.agilewiki.jactor.Actor |
copyJID(org.agilewiki.jactor.Mailbox m)
Returns a copy of the actor.
|
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory) |
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory,
org.agilewiki.jactor.Actor parent) |
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory,
org.agilewiki.jactor.Actor parent,
byte[] bytes) |
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory,
org.agilewiki.jactor.Actor parent,
ReadableBytes readableBytes) |
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory,
byte[] bytes) |
Jid |
createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory,
ReadableBytes readableBytes) |
Jid |
createSubordinate(String actorType) |
Jid |
createSubordinate(String actorType,
org.agilewiki.jactor.Actor parent) |
Jid |
createSubordinate(String actorType,
org.agilewiki.jactor.Actor parent,
byte[] bytes) |
Jid |
createSubordinate(String actorType,
org.agilewiki.jactor.Actor parent,
ReadableBytes readableBytes) |
Jid |
createSubordinate(String actorType,
byte[] bytes) |
Jid |
createSubordinate(String actorType,
ReadableBytes readableBytes) |
byte[] |
getSerializedBytes()
Returns a byte array holding the serialized persistent data.
|
int |
getSerializedLength()
Returns the number of bytes needed to serialize the persistent data.
|
void |
isJidEqual(org.agilewiki.jactor.Actor actor,
org.agilewiki.jactor.RP rp) |
protected boolean |
isSerialized()
Returns true when the persistent data is already serialized.
|
void |
load(ReadableBytes readableBytes)
Load the serialized data into the JID.
|
protected ReadableBytes |
readable()
Returns a readable form of the serialized data.
|
_Jid |
resolvePathname(String pathname)
Resolves a JID pathname, returning a JID actor or null.
|
void |
save(AppendableBytes appendableBytes)
Saves the persistent data in a byte array.
|
protected void |
serialize(AppendableBytes appendableBytes)
Serialize the persistent data.
|
void |
setContainerJid(_Jid containerJid)
Assign the container.
|
acceptEvent, acceptRequest, getActorType, getAncestor, getExceptionHandler, getFactory, getMailbox, getMailboxFactory, getMatch, getParent, hasDataItem, haveEvents, initialize, initialize, initialize, initialize, initialize, requirements, responseFrom, send, send, sendEvent, setExceptionHandler, setInitialBufferCapacity
protected byte[] serializedBytes
protected int serializedOffset
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory) throws Exception
Exception
public final Jid createSubordinate(String actorType) throws Exception
Exception
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory, org.agilewiki.jactor.Actor parent) throws Exception
Exception
public final Jid createSubordinate(String actorType, org.agilewiki.jactor.Actor parent) throws Exception
Exception
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory, byte[] bytes) throws Exception
Exception
public final Jid createSubordinate(String actorType, byte[] bytes) throws Exception
Exception
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory, org.agilewiki.jactor.Actor parent, byte[] bytes) throws Exception
Exception
public final Jid createSubordinate(String actorType, org.agilewiki.jactor.Actor parent, byte[] bytes) throws Exception
Exception
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory, ReadableBytes readableBytes) throws Exception
Exception
public final Jid createSubordinate(String actorType, ReadableBytes readableBytes) throws Exception
Exception
public final Jid createSubordinate(org.agilewiki.jactor.factory.ActorFactory factory, org.agilewiki.jactor.Actor parent, ReadableBytes readableBytes) throws Exception
Exception
public final Jid createSubordinate(String actorType, org.agilewiki.jactor.Actor parent, ReadableBytes readableBytes) throws Exception
Exception
protected final ReadableBytes readable()
protected void changed(int lengthChange) throws Exception
lengthChange
- The change in the size of the serialized data.Exception
- Any uncaught exception which occurred while processing the notification.public void change(int lengthChange) throws Exception
public void setContainerJid(_Jid containerJid)
setContainerJid
in interface _Jid
containerJid
- The container, or null.public int getSerializedLength() throws Exception
getSerializedLength
in interface _Jid
Exception
protected final boolean isSerialized()
protected void serialize(AppendableBytes appendableBytes) throws Exception
appendableBytes
- The wrapped byte array into which the persistent data is to be serialized.Exception
public void save(AppendableBytes appendableBytes) throws Exception
public final byte[] getSerializedBytes() throws Exception
Exception
public void load(ReadableBytes readableBytes) throws Exception
public _Jid resolvePathname(String pathname) throws Exception
resolvePathname
in interface _Jid
pathname
- A JID pathname.Exception
- Any uncaught exception which occurred while processing the request.public final org.agilewiki.jactor.Actor copyJID(org.agilewiki.jactor.Mailbox m) throws Exception
m
- The mailbox.Exception
Copyright © 2013. All Rights Reserved.