public final class CallFailedEvent extends EventObject
source| Constructor and Description |
|---|
CallFailedEvent(AbstractCAPI capi,
AbstractCAPICallRequest request,
long duration,
Exception exception)
Creates a failed call event.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration()
Gets the time it took to call the function.
|
Exception |
getException()
Gets the exception thrown by the CAPI call.
|
AbstractCAPICallRequest |
getRequest()
The request of the call.
|
getSource, toStringpublic CallFailedEvent(AbstractCAPI capi, AbstractCAPICallRequest request, long duration, Exception exception)
capi - the CAPI used to call the function. The CAPI is used as the event source.request - the request of the call to the function.duration - the duration of the call.exception - the exception thrown by the CAPI call.public Exception getException()
CallException.public long getDuration()
public AbstractCAPICallRequest getRequest()
See http://www.xins.org/.