|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.bam.actor.AbstractAgent
public class AbstractAgent
A BAM Actor sends and receives messages as the core class in a service-oriented architecture.
MessageStream
is the key customizable interface
for an agent developer. Developers will implement callbacks for each
packet type the agent understands.
Most developers will extend from SimpleActor
instead of implementing Actor directly. SimpleActor adds an
annotation-based message dispatching system to simplify Actor development.
Constructor Summary | |
---|---|
protected |
AbstractAgent()
|
|
AbstractAgent(java.lang.String address,
Mailbox mailbox,
Broker broker)
|
Method Summary | |
---|---|
java.lang.String |
getAddress()
Returns the actor's address, so the Broker can
deliver messages to this actor. |
Broker |
getBroker()
Returns the actor's broker. |
Mailbox |
getMailbox()
The stream to send messages to the actor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAgent()
public AbstractAgent(java.lang.String address, Mailbox mailbox, Broker broker)
Method Detail |
---|
public java.lang.String getAddress()
Broker
can
deliver messages to this actor.
getAddress
in interface Agent
public Mailbox getMailbox()
getMailbox
in interface Agent
public Broker getBroker()
getBroker
in interface Agent
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |