public interface PartitionUpdateCounter extends Iterable<long[]>
| Modifier and Type | Method and Description |
|---|---|
CacheGroupContext |
context() |
PartitionUpdateCounter |
copy() |
boolean |
empty() |
GridLongList |
finalizeUpdateCounters()
Flushes pending update counters closing all possible gaps.
|
long |
get()
Get LWM.
|
@Nullable byte[] |
getBytes() |
void |
init(long initUpdCntr,
@Nullable byte[] cntrUpdData)
Restores update counter state.
|
long |
initial()
Deprecated.
TODO LWM should be used as initial counter https://ggsystems.atlassian.net/browse/GG-17396
|
Iterator<long[]> |
iterator() |
long |
next()
Increment LWM by 1.
|
long |
next(long delta)
Increment LWM by delta.
|
long |
reserve(long delta)
Increment HWM by delta.
|
long |
reserved()
Returns HWM.
|
void |
reset()
Reset counter internal state to zero.
|
void |
resetInitialCounter()
Reset the initial counter value to zero.
|
boolean |
sequential() |
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)
Deprecated.
TODO https://ggsystems.atlassian.net/browse/GG-17396
|
forEach, spliteratorvoid init(long initUpdCntr,
@Nullable
@Nullable byte[] cntrUpdData)
initUpdCntr - LWM.cntrUpdData - Counter updates raw data.long initial()
long get()
long next()
long next(long delta)
delta - Delta.long reserve(long delta)
delta - Delta.long reserved()
void update(long val)
throws IgniteCheckedException
val - Absolute value.IgniteCheckedException - if counter cannot be set to passed value due to incompatibility with current state.boolean update(long start,
long delta)
start - Start (<= lwm).delta - Delta.True if update was actually applied.void reset()
void resetInitialCounter()
void updateInitial(long start,
long delta)
start - Counter.delta - Delta.GridLongList finalizeUpdateCounters()
@Nullable @Nullable byte[] getBytes()
boolean sequential()
True if counter has no missed updates.boolean empty()
True if counter has not seen any update.Iterator<long[]> iterator()
CacheGroupContext context()
PartitionUpdateCounter copy()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021