public class PartitionTxUpdateCounterDebugWrapper extends PartitionTxUpdateCounterImpl
MAX_MISSED_UPDATES, reserveCntr| Constructor and Description |
|---|
PartitionTxUpdateCounterDebugWrapper(CacheGroupContext grp,
int partId) |
| Modifier and Type | Method and Description |
|---|---|
GridLongList |
finalizeUpdateCounters()
Flushes pending update counters closing all possible gaps.
|
void |
init(long initUpdCntr,
@Nullable byte[] cntrUpdData)
Restores update counter state.
|
long |
next()
Increment LWM by 1.
|
long |
next(long delta)
Increment LWM by delta.
|
long |
reserve(long delta)
Increment HWM by delta.
|
void |
update(long val)
Sets update counter to absolute value.
|
boolean |
update(long start,
long delta)
Applies counter update out of range.
|
void |
updateInitial(long start,
long delta) |
empty, equals, get, getBytes, highestAppliedCounter, initial, iterator, reserved, reset, sequential, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic PartitionTxUpdateCounterDebugWrapper(CacheGroupContext grp, int partId)
grp - Group.partId - Part id.public void init(long initUpdCntr,
@Nullable
@Nullable byte[] cntrUpdData)
init in interface PartitionUpdateCounterinit in class PartitionTxUpdateCounterImplinitUpdCntr - LWM.cntrUpdData - Counter updates raw data.public void updateInitial(long start,
long delta)
updateInitial in interface PartitionUpdateCounterupdateInitial in class PartitionTxUpdateCounterImplstart - Counter.delta - Delta.public long next()
next in interface PartitionUpdateCounternext in class PartitionTxUpdateCounterImplDataStreamerImpl IsolatedUpdater.public long next(long delta)
next in interface PartitionUpdateCounternext in class PartitionTxUpdateCounterImpldelta - Delta.public void update(long val)
throws IgniteCheckedException
update in interface PartitionUpdateCounterupdate in class PartitionTxUpdateCounterImplval - Absolute value.IgniteCheckedException - if counter cannot be set to passed value due to incompatibility with current state.public GridLongList finalizeUpdateCounters()
finalizeUpdateCounters in interface PartitionUpdateCounterfinalizeUpdateCounters in class PartitionTxUpdateCounterImplpublic long reserve(long delta)
reserve in interface PartitionUpdateCounterreserve in class PartitionTxUpdateCounterImpldelta - Delta.public boolean update(long start,
long delta)
update in interface PartitionUpdateCounterupdate in class PartitionTxUpdateCounterImplstart - Start (<= lwm).delta - Delta.True if update was actually applied.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020