com.caucho.amp.actor
Class AmpActorContext
java.lang.Object
com.caucho.amp.actor.AmpActorContext
- Direct Known Subclasses:
- ActorContextImpl
public abstract class AmpActorContext
- extends java.lang.Object
Context for an actor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmpActorContext
public AmpActorContext()
getCurrent
public static final AmpActorContext getCurrent()
getCurrent
public static final AmpActorContext getCurrent(AmpActorContext systemContext)
getAddress
public abstract java.lang.String getAddress()
getMailbox
public abstract AmpMailbox getMailbox()
getActorRef
public abstract AmpActorRef getActorRef()
getStream
public abstract AmpStream getStream()
getMethod
public abstract AmpMethodRef getMethod(java.lang.String methodName,
AmpEncoder encoder)
beginCurrentActor
public final AmpActorContext beginCurrentActor()
endCurrentActor
public final void endCurrentActor(AmpActorContext prev)
query
public abstract void query(AmpMethodRef methodRef,
java.lang.Object[] args,
AmpQueryCallback cb,
long timeout)
send
public void send(AmpMethodRef methodRef,
java.lang.Object[] args)