org.xins.client.async
Class CallFailedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.xins.client.async.CallEvent
          extended byorg.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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallFailedEvent(AbstractCAPI capi, AbstractCAPICallRequest request, long duration, Exception exception)
          Creates a failed call event.
 
Method Summary
 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.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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/.