public abstract class AbstractCAPICallResult extends Object implements Serializable
This class should not be subclassed manually. It is only intended to be subclassed by classes generated by XINS.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCAPICallResult(XINSCallResult result)
Creates a new
AbstractCAPICallResult object, based on the
specified XINSCallResult. |
| Modifier and Type | Method and Description |
|---|---|
long |
duration()
Returns the call duration, in milliseconds.
|
List<CallException> |
exceptions()
Returns the list of
CallExceptions. |
TargetDescriptor |
succeededTarget()
Returns the target for which the call succeeded.
|
protected AbstractCAPICallResult(XINSCallResult result) throws IllegalArgumentException
AbstractCAPICallResult object, based on the
specified XINSCallResult.result - the lower-level XINSCallResult, cannot be null.IllegalArgumentException - if result == null.public final TargetDescriptor succeededTarget()
TargetDescriptor for which the call succeeded, not
null.public final long duration()
public final List<CallException> exceptions()
CallExceptions.CallExceptions,
collected in a CallExceptionList object,
or null if the first call attempt succeeded.See http://www.xins.org/.