|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.bam.packet.Packet
com.caucho.bam.packet.Query
public class Query
RPC call requesting information/data. The "id" field is used to match the query with the response. The target must either respond with a QueryResult or QueryError.
Constructor Summary | |
---|---|
Query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
A query to a target from a given source |
Method Summary | |
---|---|
void |
dispatch(MessageStream handler,
MessageStream toSource)
SPI method to dispatch the packet to the proper handler |
void |
dispatchError(MessageStream handler,
MessageStream toSource,
BamError error)
SPI method to dispatch the packet to the proper handler |
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 |
---|
getFrom, getTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Query(long id, java.lang.String to, java.lang.String from, java.io.Serializable value)
id
- the query idto
- the target addressfrom
- the source addressvalue
- the query contentMethod Detail |
---|
public long getId()
public java.io.Serializable getValue()
public void dispatch(MessageStream handler, MessageStream toSource)
dispatch
in class Packet
public void dispatchError(MessageStream handler, MessageStream toSource, BamError error)
dispatchError
in class Packet
public java.lang.String toString()
toString
in class Packet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |