org.xins.client.async
Class CallFailedEvent
java.lang.Object
java.util.EventObject
org.xins.client.async.CallEvent
org.xins.client.async.CallFailedEvent
- All Implemented Interfaces:
- Serializable
- public final class CallFailedEvent
- extends org.xins.client.async.CallEvent
Event fired the call to the function failed.
- Since:
- XINS 1.4.0
- Version:
- $Revision: 1.6 $ $Date: 2006/08/28 09:12:34 $
- Author:
- Anthony Goubard
- See Also:
- Serialized Form
CallFailedEvent
public CallFailedEvent(AbstractCAPI capi,
AbstractCAPICallRequest request,
long duration,
Exception exception)
- Creates a failed call event.
- Parameters:
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.
getException
public Exception getException()
- Gets the exception thrown by the CAPI call.
- Returns:
- the exception, most probably a sub class of the
CallException
.
getDuration
public long getDuration()
- Gets the time it took to call the function.
- Returns:
- the duration of the call in milliseconds.
getRequest
public AbstractCAPICallRequest getRequest()
- The request of the call.
- Returns:
- the request of the call to the function.
See http://www.xins.org/.