public class IgniteSpiOperationTimeoutHelper extends Object
Constructor and Description |
---|
IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter,
boolean srvOp)
Constructor.
|
IgniteSpiOperationTimeoutHelper(IgniteSpiAdapter adapter,
boolean srvOp,
long lastRelatedOperationTime,
long absoluteThreshold)
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 a timeout. |
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 lastRelatedOperationTime, long absoluteThreshold)
adapter
- SPI adapter.srvOp
- True
if communicates with server node.lastRelatedOperationTime
- Time of last related operation in nanos. Ignored if negative, 0 or
adapter.failureDetectionTimeoutEnabled()
is false.absoluteThreshold
- Absolute time threshold (nanos) which must not be reached. Ignored if negative or 0.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.16.0 Release Date : December 15 2023