com.caucho.bam.stream
Class NullActor

java.lang.Object
  extended by com.caucho.bam.stream.AbstractMessageStream
      extended by com.caucho.bam.stream.NullMessageStream
          extended by com.caucho.bam.stream.NullActor
All Implemented Interfaces:
Actor, ActorHolder, MessageStream

public class NullActor
extends NullMessageStream
implements Actor, ActorHolder

NullActorStream always ignores messages and returns errors for RPC calls.


Constructor Summary
NullActor()
           
NullActor(java.lang.String address)
           
NullActor(java.lang.String address, Broker broker)
           
 
Method Summary
 Actor getActor()
           
 Mailbox getMailbox()
           
 void setAddress(java.lang.String address)
           
 void setBroker(Broker broker)
           
 void setMailbox(Mailbox mailbox)
           
 
Methods inherited from class com.caucho.bam.stream.NullMessageStream
getAddress, getBroker
 
Methods inherited from class com.caucho.bam.stream.AbstractMessageStream
isClosed, message, messageError, query, queryError, queryResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
getAddress, getBroker, isClosed, message, messageError, query, queryError, queryResult
 
Methods inherited from interface com.caucho.bam.actor.ActorHolder
getAddress, getBroker
 

Constructor Detail

NullActor

public NullActor()

NullActor

public NullActor(java.lang.String address)

NullActor

public NullActor(java.lang.String address,
                 Broker broker)
Method Detail

setAddress

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

setBroker

public void setBroker(Broker broker)
Specified by:
setBroker in interface ActorHolder
Overrides:
setBroker in class NullMessageStream

getMailbox

public Mailbox getMailbox()
Specified by:
getMailbox in interface ActorHolder

setMailbox

public void setMailbox(Mailbox mailbox)
Specified by:
setMailbox in interface ActorHolder

getActor

public Actor getActor()
Specified by:
getActor in interface ActorHolder