com.caucho.bam.actor
Interface Agent

All Known Implementing Classes:
AbstractAgent

public interface Agent

A BAM Actor sends and receives messages as the core class in a service-oriented architecture.

Core API

Each actor has a unique address, which is the address for messages sent to the actor. addresss look like email addresses: harry@caucho.com or harry@caucho.com/browser. 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.


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.
 MessageStream getMailbox()
          The stream to send messages to the actor.
 

Method Detail

getAddress

java.lang.String getAddress()
Returns the actor's address, so the Broker can deliver messages to this actor.


getMailbox

MessageStream getMailbox()
The stream to send messages to the actor.


getBroker

Broker getBroker()
Returns the actor's broker.