public class SimpleActor extends AbstractMessageStream implements ManagedActor, ActorHolder
Constructor and Description |
---|
SimpleActor() |
SimpleActor(java.lang.String address,
Broker broker) |
Modifier and Type | Method and Description |
---|---|
Actor |
getActor()
Returns the custom
MessageStream to the
Broker , so the Broker can send messages to
the agent. |
java.lang.String |
getAddress()
Returns the address at the end of the stream.
|
Broker |
getBroker()
Returns the owning broker
|
Mailbox |
getMailbox() |
ActorSender |
getSender()
Returns the ActorClient to the link for convenient message calls.
|
void |
setAddress(java.lang.String address) |
void |
setBroker(Broker broker) |
void |
setMailbox(Mailbox mailbox) |
isClosed, message, messageError, query, queryError, queryResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClosed, message, messageError, query, queryError, queryResult
public SimpleActor()
public SimpleActor(java.lang.String address, Broker broker)
public java.lang.String getAddress()
AbstractMessageStream
getAddress
in interface ActorHolder
getAddress
in interface MessageStream
getAddress
in class AbstractMessageStream
public void setAddress(java.lang.String address)
setAddress
in interface ActorHolder
setAddress
in interface ManagedActor
public Actor getActor()
MessageStream
to the
Broker
, so the Broker can send messages to
the agent.
Developers will customize the ActorStream to receive messages from
the Broker.getActor
in interface ActorHolder
getActor
in interface ManagedActor
public ActorSender getSender()
public Mailbox getMailbox()
getMailbox
in interface ActorHolder
getMailbox
in interface ManagedActor
public void setMailbox(Mailbox mailbox)
setMailbox
in interface ActorHolder
setMailbox
in interface ManagedActor
public Broker getBroker()
MessageStream
getBroker
in interface ActorHolder
getBroker
in interface MessageStream
getBroker
in class AbstractMessageStream
public void setBroker(Broker broker)
setBroker
in interface ActorHolder
setBroker
in interface ManagedActor