|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageDispatch
Mix-in interface for application message dispatchers (i.e. thread pools).
If a message callback object implements MessageDispatch in addition to
MessageCallback then messages will be sent to
MessageDispatch.dispatchMessage() instead of MessageCallback.handleMessage().
Typically, dispatchMessage() inserts the message into a queue and returns.
Then, a thread pool removes from the queue and calls
MessageCallback.handleMessage(). The queue should pass the flags
through unaltered.
| Method Summary | |
|---|---|
void |
dispatchMessage(Message message,
int flags,
MessageCallback callback)
Dispatch message to queue or thread pool. |
| Method Detail |
|---|
void dispatchMessage(Message message,
int flags,
MessageCallback callback)
flags through unaltered.
message - Message sent from other agent.flags - Bitwise OR of MessageCallback.NO_FLAGS,
MessageCallback.RESPONSE_EXPECTEDcallback - Callback to handle the message (currently,
always the same as 'this').
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||