public class IgniteSpiOperationTimeoutHelper extends Object
Constructor and Description |
---|
IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter,
boolean srvOp)
Constructor.
|
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 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
.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024