com.caucho.bam.actor
Class AbstractActorHolder

java.lang.Object
  extended by com.caucho.bam.actor.AbstractActorHolder
All Implemented Interfaces:
ActorHolder

public abstract class AbstractActorHolder
extends java.lang.Object
implements ActorHolder

Abstract implementation of a BAM actor.


Constructor Summary
AbstractActorHolder()
           
 
Method Summary
abstract  Actor getActor()
          Returns the stream to the Actor from the link so messages from other Actors can be delivered.
 java.lang.String getAddress()
           
 Broker getBroker()
          The stream to the link is used by the Actor to send messages to all other Actors in the system.
 Mailbox getMailbox()
          The stream to the link is used by the Actor to send messages to all other Actors in the system.
 void setAddress(java.lang.String address)
           
 void setBroker(Broker broker)
          The stream to the link is used by the Actor to send messages to all other Actors in the system.
 void setMailbox(Mailbox mailbox)
          The stream to the link is used by the Actor to send messages to all other Actors in the system.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractActorHolder

public AbstractActorHolder()
Method Detail

getActor

public abstract Actor getActor()
Returns the stream to the Actor from the link so messages from other Actors can be delivered.

Specified by:
getActor in interface ActorHolder

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface ActorHolder

setAddress

public void setAddress(java.lang.String address)
Specified by:
setAddress in interface ActorHolder

getBroker

public Broker getBroker()
The stream to the link is used by the Actor to send messages to all other Actors in the system.

Specified by:
getBroker in interface ActorHolder

setBroker

public void setBroker(Broker broker)
The stream to the link is used by the Actor to send messages to all other Actors in the system.

Specified by:
setBroker in interface ActorHolder

getMailbox

public Mailbox getMailbox()
The stream to the link is used by the Actor to send messages to all other Actors in the system.

Specified by:
getMailbox in interface ActorHolder

setMailbox

public void setMailbox(Mailbox mailbox)
The stream to the link is used by the Actor to send messages to all other Actors in the system.

Specified by:
setMailbox in interface ActorHolder

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object