public class CoalescingPublisherAccumulator extends BasicAccumulator<QueryCacheEventData>
Accumulator which coalesces
keys during accumulation.| Modifier and Type | Field and Description |
|---|---|
protected CyclicBuffer<E> |
buffer |
protected QueryCacheContext |
context |
protected AccumulatorInfo |
info |
protected PartitionSequencer |
partitionSequencer |
handler, logger| Constructor and Description |
|---|
CoalescingPublisherAccumulator(QueryCacheContext context,
AccumulatorInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(QueryCacheEventData eventData)
Adds event to this accumulator.
|
protected AccumulatorProcessor |
createAccumulatorProcessor(AccumulatorInfo info,
QueryCacheEventService eventService) |
CyclicBuffer<E> |
getBuffer() |
protected QueryCacheContext |
getContext() |
protected long |
getNow() |
protected boolean |
isExpired(QueryCacheEventData entry,
long delayMillis,
long now) |
getInfo, getPartitionSequencer, isEmpty, iterator, peek, 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
public CoalescingPublisherAccumulator(QueryCacheContext context, AccumulatorInfo info)
public void accumulate(QueryCacheEventData eventData)
Accumulatoraccumulate in interface Accumulator<QueryCacheEventData>accumulate in class BasicAccumulator<QueryCacheEventData>eventData - event to add.protected AccumulatorProcessor createAccumulatorProcessor(AccumulatorInfo info, QueryCacheEventService eventService)
createAccumulatorProcessor in class BasicAccumulator<QueryCacheEventData>public CyclicBuffer<E> getBuffer()
protected QueryCacheContext getContext()
protected long getNow()
protected boolean isExpired(QueryCacheEventData entry, long delayMillis, long now)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.