com.anwrt.hl.model.listeners
Interface AwtMessageListener


public interface AwtMessageListener

The listener interface to receive incoming messages.
creation : 20 march 2009

Author:
David FRANCOIS

Field Summary
static int CORRELATED_DATA_MESSAGE
          Message type 5, body is a map of correlated data
static int DATA_MESSAGE
          Message type 1, body is a map
static int SERVER_COMMAND
          Message type 2, body is an AwtCmmand
 
Method Summary
 void onMessage(AwtMessage message, boolean toBeAcked)
          Call by the framework when a message is received.
 

Field Detail

DATA_MESSAGE

static final int DATA_MESSAGE
Message type 1, body is a map

See Also:
Constant Field Values

SERVER_COMMAND

static final int SERVER_COMMAND
Message type 2, body is an AwtCmmand

See Also:
Constant Field Values

CORRELATED_DATA_MESSAGE

static final int CORRELATED_DATA_MESSAGE
Message type 5, body is a map of correlated data

See Also:
Constant Field Values
Method Detail

onMessage

void onMessage(AwtMessage message,
               boolean toBeAcked)
Call by the framework when a message is received.

Parameters:
message - The received AwtMessage
toBeAcked - Flag, true if the server waits for an acknowledgment.