com.caucho.bam.packet
Class QueryError

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

public class QueryError
extends Packet

RPC error result from a get or set. The "id" field is used to match the query with the response.


Constructor Summary
QueryError(long id, java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error)
          A query to a target
 
Method Summary
 void dispatch(MessageStream handler, MessageStream toSource)
          SPI method to dispatch the packet to the proper handler
 BamError getError()
          Returns the query error
 long getId()
          Returns the id
 java.io.Serializable getValue()
          Returns the query 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

QueryError

public QueryError(long id,
                  java.lang.String to,
                  java.lang.String from,
                  java.io.Serializable value,
                  BamError error)
A query to a target

Parameters:
id - the query id
to - the target address
from - the source address
value - copy the query request
error - the query error
Method Detail

getId

public long getId()
Returns the id


getValue

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


getError

public BamError getError()
Returns the query 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