public class InverseMethodInvocationRequest extends AbstractInverseServiceRequest
| Constructor and Description |
|---|
InverseMethodInvocationRequest(MethodInvocationRequest methodInvocationRequest) |
InverseMethodInvocationRequest(Uid delayedResponseId) |
| Modifier and Type | Method and Description |
|---|---|
Uid |
getDelayedResponseId() |
MethodInvocationRequest |
getMethodInvocationRequest() |
boolean |
isTimeoutDeadly()
Indicates whether encountering a timeout causes the entire
InverseInvoker to be marked dead. |
getRequestIdpublic InverseMethodInvocationRequest(MethodInvocationRequest methodInvocationRequest)
public InverseMethodInvocationRequest(Uid delayedResponseId)
public MethodInvocationRequest getMethodInvocationRequest()
public Uid getDelayedResponseId()
public boolean isTimeoutDeadly()
InverseServiceRequestInverseInvoker to be marked dead.
If this is true, the first TimeoutException thrown by
InverseInvoker.performInverseServiceRequest(InverseServiceRequest) causes the
InverseInvoker to be marked diedOfTimeout and all future requests will fail
immediately without waiting for the timeout again.
An implementation of InverseServiceRequest should return false, if it cannot
guarantee that handling this request will never exceed the timeout. If, however, it knows for sure
(really 100%!) that the timeout means the communication partner is dead (JVM crashed, shut down or whatever),
it should return true to prevent unnecessary waiting.
isTimeoutDeadly in interface InverseServiceRequestisTimeoutDeadly in class AbstractInverseServiceRequestInverseInvoker out of order.Copyright © 2013–2017. All rights reserved.