public final class CallSucceededEvent extends EventObject
source| Constructor and Description |
|---|
CallSucceededEvent(AbstractCAPI capi,
AbstractCAPICallRequest request,
long duration,
AbstractCAPICallResult result)
Creates a successful call event.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration()
Gets the time it took to call the function.
|
AbstractCAPICallRequest |
getRequest()
The request of the call.
|
AbstractCAPICallResult |
getResult()
Gets the result returned by the function.
|
getSource, toStringpublic CallSucceededEvent(AbstractCAPI capi, AbstractCAPICallRequest request, long duration, AbstractCAPICallResult result)
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.result - the result of the call.public AbstractCAPICallResult getResult()
AbstractCAPICallResult
to the generated result file normally returned by the CAPI call.public long getDuration()
public AbstractCAPICallRequest getRequest()
See http://www.xins.org/.