public class SubscriberAccumulator extends BasicAccumulator<QueryCacheEventData>
QueryCache.
 Otherwise, it informs registered callback if there is any.
 This class can be accessed by multiple-threads at a time.
| Modifier and Type | Field and Description | 
|---|---|
protected CyclicBuffer<E> | 
buffer  | 
protected QueryCacheContext | 
context  | 
protected AccumulatorInfo | 
info  | 
protected PartitionSequencer | 
partitionSequencer  | 
logger| Modifier | Constructor and Description | 
|---|---|
protected  | 
SubscriberAccumulator(QueryCacheContext context,
                     AccumulatorInfo info)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
accumulate(QueryCacheEventData event)
Adds event to this accumulator. 
 | 
ConcurrentMap<Integer,Long> | 
getBrokenSequences()  | 
CyclicBuffer<E> | 
getBuffer()  | 
protected QueryCacheContext | 
getContext()  | 
protected long | 
getNow()  | 
protected boolean | 
isExpired(QueryCacheEventData entry,
         long delayMillis,
         long now)  | 
protected boolean | 
isNextEvent(Sequenced event)  | 
createAccumulatorProcessor, getInfo, isEmpty, iterator, poll, poll, reset, setHead, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected final AccumulatorInfo info
protected final QueryCacheContext context
protected final CyclicBuffer<E extends Sequenced> buffer
protected final PartitionSequencer partitionSequencer
protected SubscriberAccumulator(QueryCacheContext context, AccumulatorInfo info)
public ConcurrentMap<Integer,Long> getBrokenSequences()
public void accumulate(QueryCacheEventData event)
Accumulatoraccumulate in interface Accumulator<QueryCacheEventData>accumulate in class BasicAccumulator<QueryCacheEventData>event - event to add.protected boolean isNextEvent(Sequenced event)
public CyclicBuffer<E> getBuffer()
protected QueryCacheContext getContext()
protected long getNow()
protected boolean isExpired(QueryCacheEventData entry, long delayMillis, long now)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.