public class JMapClientMessagingController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POLL_SERVER_CHECK_DELAY
Default server polling time interval is 30 seconds.
|
static int |
INITIAL_POLL_SERVER_CHECK_DELAY |
| Constructor and Description |
|---|
JMapClientMessagingController(JMapApplicationContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acknowledgeMessage(Message message) |
void |
addMessagingListener(MessagingListener listener,
MessageType[] messageTypes) |
boolean |
deleteMessage(Message message) |
void |
destroy() |
Message[] |
getReceivedMessages()
This will return all received messages in order [newer to older].
|
Message[] |
getReceivedMessages(java.lang.Class<? extends Message> type)
This will return all received messages of the specified type
in order [newer to older].
|
boolean |
isUnacknowledgedMessages() |
void |
pollServer() |
void |
removeMessagingListener(MessagingListener listener) |
void |
removeMessagingListener(MessagingListener listener,
MessageType[] messageTypes) |
void |
setPollServerCheckDelay(int timeInMillis)
Sets the polling time interval.
|
public static final int DEFAULT_POLL_SERVER_CHECK_DELAY
public static final int INITIAL_POLL_SERVER_CHECK_DELAY
public JMapClientMessagingController(JMapApplicationContext appContext)
public void pollServer()
public void setPollServerCheckDelay(int timeInMillis)
timeInMillis - polling interval time in millisecondspublic Message[] getReceivedMessages()
public Message[] getReceivedMessages(java.lang.Class<? extends Message> type)
public boolean isUnacknowledgedMessages()
public void addMessagingListener(MessagingListener listener, MessageType[] messageTypes)
public void removeMessagingListener(MessagingListener listener)
public void removeMessagingListener(MessagingListener listener, MessageType[] messageTypes)
public boolean acknowledgeMessage(Message message)
public boolean deleteMessage(Message message)
public void destroy()