public class QueryResult extends Packet
| Constructor and Description |
|---|
QueryResult(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
|
long |
getId()
Returns the id
|
java.io.Serializable |
getValue()
Returns the query value
|
java.lang.String |
toString() |
dispatchError, getFrom, getTopublic QueryResult(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)