| java.lang.Object org.xins.common.service.CallResult
All known Subclasses: org.xins.common.http.HTTPCallResult, org.xins.client.XINSCallResult,
CallResult | abstract public class CallResult implements Serializable(Code) | | Result of a call to a service. The actual result is returned, combined with
links to the services that failed and a link to the service to which the
call succeeded.
This is an abstract class. Service callers return a
specific kind of result, which is derived from this class.
version: $Revision: 1.23 $ $Date: 2007/03/15 17:08:27 $ author: Ernst de Haan since: XINS 1.0.0 |
CallResult | protected CallResult(CallRequest request, TargetDescriptor succeededTarget, long duration, CallExceptionList exceptions) throws IllegalArgumentException(Code) | | Constructs a new CallResult object.
Parameters: request - the call request that resulted in this result, cannot benull . Parameters: succeededTarget - the target for which the call succeeded, cannot be null . Parameters: duration - the call duration in milliseconds, cannot be a negative number. Parameters: exceptions - the list of CallExceptions, or null if the firstcall attempt succeeded. throws: IllegalArgumentException - if request == null|| succeededTarget == null|| duration < 0L . |
getDuration | final public long getDuration()(Code) | | Returns the call duration, in milliseconds.
the duration of the succeeded call, in milliseconds, guaranteed tobe a non-negative number. |
|
|