com.caucho.bam.stream
Class NullMessageStream

java.lang.Object
  extended by com.caucho.bam.stream.AbstractMessageStream
      extended by com.caucho.bam.stream.NullMessageStream
All Implemented Interfaces:
MessageStream
Direct Known Subclasses:
FallbackMessageStream, NullActor

public class NullMessageStream
extends AbstractMessageStream

NullActorStream always ignores messages and returns errors for RPC calls.


Constructor Summary
protected NullMessageStream()
           
  NullMessageStream(java.lang.String address, Broker broker)
           
 
Method Summary
 java.lang.String getAddress()
          Returns the address at the end of the stream.
 Broker getBroker()
          The stream to the link.
protected  void setAddress(java.lang.String address)
           
protected  void setBroker(Broker broker)
           
 
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
 

Constructor Detail

NullMessageStream

protected NullMessageStream()

NullMessageStream

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

getAddress

public java.lang.String getAddress()
Returns the address at the end of the stream.

Specified by:
getAddress in interface MessageStream
Overrides:
getAddress in class AbstractMessageStream

setAddress

protected void setAddress(java.lang.String address)

getBroker

public Broker getBroker()
The stream to the link.

Specified by:
getBroker in interface MessageStream
Overrides:
getBroker in class AbstractMessageStream

setBroker

protected void setBroker(Broker broker)