public interface MessageListener
Java interface defines a communication listener in your client application; This listener is notified when an operation is completed, when
the current operation notifies progress, and when a message (message envelope) is completed.
You use this interface to implement asynchronous communications with the SAP CC system via the HCI technical interface.
| Modifier and Type | Field and Description |
|---|---|
static int |
STOPPABLE_STATUS
1: Stoppable operation status constant
|
static int |
UNBREAKABLE_STATUS
2: Unbreakable operation status constant
|
| Modifier and Type | Method and Description |
|---|---|
void |
envelopeCompleted()
Invoked when a
message is completed. |
void |
envelopeStopped()
Invoked when a
message is stopped. |
void |
operationCompleted(int op)
Invoked when an
operation is completed. |
void |
operationStopped(int op)
Invoked when an
operation is stopped. |
void |
progressReceived(int op,
int current,
int max)
Invoked when the
current operation notifies progress. |
void |
statusChangeReceived(int op,
int status)
Invoked when the
current operation notifies a status change. |
void |
statusChangeReceived(int op,
int subOp,
int status)
Invoked when the
current operation notifies a status change. |
static final int STOPPABLE_STATUS
static final int UNBREAKABLE_STATUS
void operationCompleted(int op)
operation is completed.op - The operation rank in the message (starting from 0)void operationStopped(int op)
operation is stopped.op - The operation rank in the message (starting from 0)void progressReceived(int op,
int current,
int max)
current operation notifies progress.op - The operation rank in the message (starting from 0)current - The progress of the operationmax - The maximum for the progress of this operation, or -1
if maximum cannot be determinedvoid statusChangeReceived(int op,
int status)
current operation notifies a status change.
For example, during the execution the operation status can change from a cancellable operation status to a stoppable operation status.
The available statuses are:
op - The operation rank in the message (starting from 0)status - The current status of the operationvoid statusChangeReceived(int op,
int subOp,
int status)
current operation notifies a status change.
For example, during the execution the operation status can change from a cancellable operation status to a stoppable operation status.
The available statuses are:
op - The operation rank in the message (starting from 0)subOp - The subscription sub operation rank in the operation (starting from 0)status - The current status of the operationvoid envelopeCompleted()
message is completed.void envelopeStopped()
message is stopped.