public class IgniteSpiOperationTimeoutHelper extends Object
Constructor and Description |
---|
IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter,
boolean srvOp)
Constructor.
|
IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter,
boolean srvOp,
long lastOperStartNanos)
Creates timeout helper based on time of last related operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkFailureTimeoutReached(Exception e)
Checks whether the given
Exception is generated because failure detection timeout has been reached. |
long |
nextTimeoutChunk(long dfltTimeout)
Returns a timeout value to use for the next network operation.
|
public IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter, boolean srvOp)
adapter
- SPI adapter.srvOp
- True
if communicates with server node.public IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter, boolean srvOp, long lastOperStartNanos)
adapter
- SPI adapter.srvOp
- True
if communicates with server node.lastOperStartNanos
- Time of last related operation in nanos.public long nextTimeoutChunk(long dfltTimeout) throws IgniteSpiOperationTimeoutException
dfltTimeout
is returned.dfltTimeout
- Timeout to use if failure detection timeout is disabled.IgniteSpiOperationTimeoutException
- If failure detection timeout is reached for an operation that uses
this IgniteSpiOperationTimeoutController
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020