com.caucho.bam.broker
Class PassthroughBroker
java.lang.Object
com.caucho.bam.broker.AbstractBrokerStream
com.caucho.bam.broker.AbstractBroker
com.caucho.bam.broker.PassthroughBroker
- All Implemented Interfaces:
- Broker, MessageStream
public class PassthroughBroker
- extends AbstractBroker
Broker is the hub which routes messages to actors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PassthroughBroker
public PassthroughBroker()
PassthroughBroker
public PassthroughBroker(Mailbox mailbox)
getMailbox
public Mailbox getMailbox(java.lang.String address)
- Description copied from class:
AbstractBrokerStream
- Returns the actor stream for the given address.
- Specified by:
getMailbox
in interface Broker
- Overrides:
getMailbox
in class AbstractBroker
- Parameters:
address
- the address of the mailbox
- Returns:
- the mailbox with the given address or null
setMailbox
public void setMailbox(Mailbox mailbox)
close
public void close()
- Description copied from interface:
Broker
- Close the Broker
- Specified by:
close
in interface Broker
- Overrides:
close
in class AbstractBroker
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractBrokerStream