public interface IMonitorSpendingStatusResultListener extends ChargeExceptionListener
Java interface has to be implemented by the caller of the AsyncStatefulServiceClient.monitorSpendingStatus(String, byte, String, String[], int, IMonitorSpendingStatusResultListener) method
for processing results and exceptions.
You design and develop your own handling according to your business requirements.
You manage the result of the monitorSpendingStatus
implementing each method of this interface:
onResult(ISpendingStatusMonitoringResult)ChargeExceptionListener.onException(CommunicationFailureException)onException(ForbiddenChargeException)ChargeExceptionListener.onException(IllegalArgumentException)Design and implement the onException(..) method:
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult
This
Java interface provides data of the result of spending status monitoring. |
static class |
IMonitorSpendingStatusResultListener.MonitoringAction
This
enumeration lists the possible actions: no action, created, changed, or canceled. |
| Modifier and Type | Method and Description |
|---|---|
void |
onException(ForbiddenChargeException forbiddenChargeException)
Invoked each time a request of spending status monitoring has not been processed due to an exception.
|
void |
onResult(IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult spendingStatusMonitoringResult)
Invoked each time a request of spending status monitoring has been processed successfully.
|
onException, onException, onExceptionvoid onResult(IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult spendingStatusMonitoringResult)
spendingStatusMonitoringResult - The result to handlevoid onException(ForbiddenChargeException forbiddenChargeException)
forbiddenChargeException - the result to handle