com.caucho.bam.actor
Interface ActorHolder

All Known Implementing Classes:
AbstractActorHolder, AbstractCloudActor, BamJmsService, BamLogService, BamMailService, BamPhpActor, BamPhpRootService, CacheDataActor, CacheDataTriadActor, CacheMnodeActor, CacheMnodeTriadActor, ClusterQueueActor, ClusterQueueTriadActor, ClusterStatService, DeployActor, GlobalCacheActor, HeartbeatActor, HmtpServlet, JmxService, JMXService, JmxServiceImpl, LicenseActor, ManagerActor, NetworkAddressActor, NotifyActor, NullActor, RepositoryActor, ResinActor, ServerLinkActor, SimpleActor, VoteActor, WatchdogActor

public interface ActorHolder

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
 Actor getActor()
           
 java.lang.String getAddress()
           
 Broker getBroker()
           
 Mailbox getMailbox()
           
 void setAddress(java.lang.String address)
           
 void setBroker(Broker broker)
           
 void setMailbox(Mailbox mailbox)
           
 

Method Detail

getActor

Actor getActor()

getAddress

java.lang.String getAddress()

setAddress

void setAddress(java.lang.String address)

getBroker

Broker getBroker()

setBroker

void setBroker(Broker broker)

getMailbox

Mailbox getMailbox()

setMailbox

void setMailbox(Mailbox mailbox)