public interface SessionEventListener extends ChargeExceptionListener
AsyncStatefulServiceClient.startRate(com.highdeal.pnr.hci.ChargeableItem, String, java.util.Date, String, String, int, long, int, boolean, SessionEventListener),
AsyncStatefulServiceClient.updateRate(com.highdeal.pnr.hci.ChargeableItem, com.highdeal.pnr.hci.ChargeableItem, String, java.util.Date, String, String, int, int, boolean, SessionEventListener),
AsyncStatefulServiceClient.stopRate(com.highdeal.pnr.hci.ChargeableItem, String, String, String, int, int, boolean, SessionEventListener)| Modifier and Type | Method and Description |
|---|---|
void |
onException(ForbiddenChargeException e)
Invoked when the rating is not allowed.
|
void |
onException(InvalidItemException e)
Invoked when a chargeable item is invalid.
|
void |
onException(StartRateException e)
Invoked when rating session can not be created.
|
void |
onException(StopRateException e)
Invoked when usage transactions can not be cleared.
|
void |
onException(TransactionClearingException e)
Invoked when usage transactions can not be cleared.
|
void |
onException(UpdateRateException e)
Invoked when rating session can not be updated.
|
void |
onStartRateResult(StartRateResult result)
Invoked when the start rate operation is successful.
|
void |
onStopRateResult(StopRateResult result)
Invoked when the stop rate operation is successful.
|
void |
onUpdateRateResult(UpdateRateResult result)
Invoked when the update rate operation is successful.
|
onException, onException, onExceptionvoid onException(ForbiddenChargeException e)
e - the exception to be handled.void onException(InvalidItemException e)
e - the exception to be handled.void onException(StartRateException e)
e - the exception to be handled.void onException(TransactionClearingException e)
e - the exception to be handled.void onStartRateResult(StartRateResult result)
result - a rating result used to reserve the balance.void onException(StopRateException e)
e - the exception to be handled.void onStopRateResult(StopRateResult result)
result - the result of the stop rate operation.void onException(UpdateRateException e)
e - the exception to be handled.void onUpdateRateResult(UpdateRateResult result)
result - the result of the cleanup operation.