public interface CompletionListener
Implement this interface to process completion events.
Supply an instance when you call
Connection.publish(Message, CompletionListener).
| Modifier and Type | Field and Description |
|---|---|
static int |
PUBLISH_DISALLOWED
This user is not allowed to publish messages.
|
static int |
PUBLISH_FAILED
The server could not forward a message published by an eFTL
client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCompletion(Message message)
A publish operation has completed successfully.
|
void |
onError(Message message,
int code,
java.lang.String reason)
A publish operation resulted in an error.
|
static final int PUBLISH_FAILED
To determine the root cause, examine the server log.
The client may attempt to publish the message again.
static final int PUBLISH_DISALLOWED
Administrators configure permission to publish.
void onCompletion(Message message)
message - This message has been published.void onError(Message message, int code, java.lang.String reason)
The message was not forwarded by the eFTL server.
When developing a client application, consider alerting the user to the error.
Possible error codes include:
message - This message was not published.code - This code categorizes the error.
Application programs may use this value
in response logic.reason - This string provides more detail about the error.
Application programs may use this value
for error reporting and logging.