com.caucho.bam.packet
Class MessageError

java.lang.Object
  extended by com.caucho.bam.packet.Packet
      extended by com.caucho.bam.packet.MessageError

public class MessageError
extends Packet

Unidirectional message with an error


Constructor Summary
MessageError(java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error)
          An empty message to a destination
 
Method Summary
 void dispatch(MessageStream handler, MessageStream toSource)
          SPI method to dispatch the packet to the proper handler
 BamError getError()
          Returns the message error
 java.io.Serializable getValue()
          Returns the message value
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.bam.packet.Packet
dispatchError, getFrom, getTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageError

public MessageError(java.lang.String to,
                    java.lang.String from,
                    java.io.Serializable value,
                    BamError error)
An empty message to a destination

Parameters:
to - the target address
Method Detail

getValue

public java.io.Serializable getValue()
Returns the message value


getError

public BamError getError()
Returns the message error


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