com.caucho.amp.actor
Class ActorRefImpl
java.lang.Object
com.caucho.amp.actor.ActorRefImpl
- All Implemented Interfaces:
- AmpActorRef
public final class ActorRefImpl
- extends java.lang.Object
- implements AmpActorRef
Handles the context for an actor, primarily including its
query map.
Method Summary |
void |
error(AmpActorRef from,
AmpEncoder encoder,
AmpError error)
|
java.lang.String |
getAddress()
|
AmpMethodRef |
getMethod(java.lang.String methodName,
AmpEncoder encoder)
|
void |
query(long id,
AmpActorRef from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args)
|
void |
queryError(long id,
AmpActorRef from,
AmpEncoder encoder,
AmpError error)
|
void |
reply(long id,
AmpActorRef from,
AmpEncoder encoder,
java.lang.Object result)
|
void |
send(AmpActorRef from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActorRefImpl
public ActorRefImpl(java.lang.String address,
AmpMailbox mailbox,
AmpActorContext actor)
getAddress
public java.lang.String getAddress()
- Specified by:
getAddress
in interface AmpActorRef
getMethod
public AmpMethodRef getMethod(java.lang.String methodName,
AmpEncoder encoder)
- Specified by:
getMethod
in interface AmpActorRef
send
public void send(AmpActorRef from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args)
- Specified by:
send
in interface AmpActorRef
query
public void query(long id,
AmpActorRef from,
AmpEncoder encoder,
java.lang.String methodName,
java.lang.Object... args)
- Specified by:
query
in interface AmpActorRef
reply
public void reply(long id,
AmpActorRef from,
AmpEncoder encoder,
java.lang.Object result)
- Specified by:
reply
in interface AmpActorRef
queryError
public void queryError(long id,
AmpActorRef from,
AmpEncoder encoder,
AmpError error)
- Specified by:
queryError
in interface AmpActorRef
error
public void error(AmpActorRef from,
AmpEncoder encoder,
AmpError error)
- Specified by:
error
in interface AmpActorRef
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object