public interface AcquisitionListener extends ChargeExceptionListener
Java interface defines the onResult(..) method called by the asynchronous batch service client when performing
asynchronous chargeable item acquisition by using the method
AsyncBatchServiceClient.acquire(List, AcquisitionListener).
| Asynch. Comm. |
|---|
acquire(..)
specified in the
AsyncBatchServiceClient class
|
| Exception | Reason | Implementation and Customizing | Troubleshooting |
|---|---|---|---|
Communication Failure Exception
| Refer to the details of each exception. | Design and develop the error handling of each exception. | Refer to the details of each exception. |
Illegal Argument Exception
| |||
Server Failure Exception
|
You implement this Java interface in your custom Java classes that must handle
operation results and exceptions.
Depending on your requirements, design and develop the relevant functions:
onResult(..) method
onException(..) methods
See BatchChargeEventListener in this SAP product documentation.
AsyncBatchServiceClient| Modifier and Type | Method and Description |
|---|---|
void |
onResult(java.util.List<AcquisitionResult> results)
Invoked by the
asynchronous batch service client when the SAP CC system returns the result of
the AsyncBatchServiceClient.acquire(List, AcquisitionListener) method. |
onException, onException, onExceptionvoid onResult(java.util.List<AcquisitionResult> results)
asynchronous batch service client when the SAP CC system returns the result of
the AsyncBatchServiceClient.acquire(List, AcquisitionListener) method.results - A list of acquisition results, in the same order as the parameters specified as
arguments of the method AsyncBatchServiceClient.acquire(List, AcquisitionListener) that was used
to request the batch acquisition operation