|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DKSDHTCallback
Callbacks from messages received by the DHT but belonging to a higher layer are handled by instances of this interface
| Method Summary | |
|---|---|
void |
dhtBroadcastCallback(DKSObject value)
Receive a broadcast message |
DKSMessage |
dhtRouteCallback(long identifier,
DKSMessage value)
The callback is called at the responsible node when a route() message reaches its destination and the message is not handled at a lower abstraction layer. |
void |
dhtRouteCallbackAsync(long identifier,
DKSMessage payload)
The callback is called at the responsible node when a route() message reaches its destination and the message is not handled at a lower abstraction layer. |
| Method Detail |
|---|
void dhtBroadcastCallback(DKSObject value)
DKSMessage dhtRouteCallback(long identifier,
DKSMessage value)
identifier - long, the identifier searched for in route,
maybe not interesting for the app in many cases.payload - DKSObject, the actual payload sent by the source
void dhtRouteCallbackAsync(long identifier,
DKSMessage payload)
identifier - long, the identifier searched for in route,
maybe not interesting for the app in many cases.payload - DKSObject, the actual payload sent by the source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||