|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Messageable
The Messageable interface defines callback methods used by Messagers to deliver queries and asynchronous messages to nodes. Exceptions thrown during processing of a message may be of any framework type. It is up to the Messager implementation to wrap these appropriately.
| Method Summary | |
|---|---|
SandCollectionMessage |
callQuery(SandQueryMessage sqm)
A generalized call method that takes a query message and returns the corresponding collection. |
void |
deliver(SandMessage msg)
Receive streamed messages. |
IDCache |
getIDCache()
If this node will be caching instances locally, return the IDCache instance that will be used. |
Messager |
getMessager()
Return our Messager instance |
SandMessage |
receive(SandMessage msg)
Receive a query. |
void |
setMessager(Messager messager)
Set our Messager instance |
| Method Detail |
|---|
void deliver(SandMessage msg)
throws SandException
SandException
SandMessage receive(SandMessage msg)
throws SandException
SandExceptionMessager getMessager()
void setMessager(Messager messager)
IDCache getIDCache()
SandCollectionMessage callQuery(SandQueryMessage sqm)
throws SandException
SandException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||