public abstract class AbstractInverseServiceRequest extends Object implements InverseServiceRequest
| Constructor and Description |
|---|
AbstractInverseServiceRequest() |
| Modifier and Type | Method and Description |
|---|---|
Uid |
getRequestId() |
boolean |
isTimeoutDeadly()
Indicates whether encountering a timeout causes the entire
InverseInvoker to be marked dead. |
public AbstractInverseServiceRequest()
public Uid getRequestId()
getRequestId in interface InverseServiceRequestpublic 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 InverseServiceRequestInverseInvoker out of order.Copyright © 2013–2019. All rights reserved.