com.caucho.bam.packet
Class Message
java.lang.Object
com.caucho.bam.packet.Packet
com.caucho.bam.packet.Message
public class Message
- extends Packet
Unidirectional message with a value.
Constructor Summary |
Message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
An message to a destination with a source address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Message
public Message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
- An message to a destination with a source address.
- Parameters:
to
- the target addressfrom
- the source addressvalue
- the message content
getValue
public java.io.Serializable getValue()
- Returns the message value
dispatch
public void dispatch(MessageStream handler,
MessageStream toSource)
- SPI method to dispatch the packet to the proper handler
- Overrides:
dispatch
in class Packet
toString
public java.lang.String toString()
- Overrides:
toString
in class Packet