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
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019