|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.service.CallResult
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.
Constructor Summary | |
protected |
CallResult(CallRequest request,
TargetDescriptor succeededTarget,
long duration,
CallExceptionList exceptions)
Constructs a new CallResult object. |
Method Summary | |
long |
getDuration()
Returns the call duration, in milliseconds. |
CallExceptionList |
getExceptions()
Returns the list of CallException s. |
CallRequest |
getRequest()
Returns the call request. |
TargetDescriptor |
getSucceededTarget()
Returns the target for which the call succeeded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CallResult(CallRequest request, TargetDescriptor succeededTarget, long duration, CallExceptionList exceptions) throws IllegalArgumentException
CallResult
object.
request
- the call request that resulted in this result, cannot be
null
.succeededTarget
- the target for which the call succeeded, cannot be null
.duration
- the call duration in milliseconds, cannot be a negative number.exceptions
- the list of CallException
s, or null
if the first
call attempt succeeded.
IllegalArgumentException
- if request == null
|| succeededTarget == null
|| duration < 0L
.Method Detail |
public final CallRequest getRequest()
CallRequest
, never null
.public final TargetDescriptor getSucceededTarget()
TargetDescriptor
for which the call succeeded, not
null
.public final long getDuration()
public final CallExceptionList getExceptions()
CallException
s.
CallException
s, collected in a CallExceptionList
object, or null
if the first call attempt succeeded.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |