public class Query extends Packet
Constructor and Description |
---|
Query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
A query to a target from a given source
|
Modifier and Type | Method and Description |
---|---|
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() |
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 contentpublic long getId()
public java.io.Serializable getValue()
public void dispatch(MessageStream handler, MessageStream toSource)
public void dispatchError(MessageStream handler, MessageStream toSource, BamError error)
dispatchError
in class Packet