public class AggregationWindowedPerSnapshotOutputRateLimiter extends SnapshotOutputRateLimiter
PerSnapshotOutputRateLimiter for queries with Windows and Aggregators.| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
aggregateAttributePositionList |
protected Comparator<ComplexEvent> |
comparator |
protected String |
id |
protected String |
queryName |
protected ScheduledExecutorService |
scheduledExecutorService |
protected long |
scheduledTime |
protected Scheduler |
scheduler |
protected Long |
value |
lockWrapper, siddhiAppContext, stateEventCloner, streamEventCloner| Modifier | Constructor and Description |
|---|---|
protected |
AggregationWindowedPerSnapshotOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
List<Integer> aggregateAttributePositionList,
WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter,
SiddhiAppContext siddhiAppContext,
String queryName) |
| Modifier and Type | Method and Description |
|---|---|
SnapshotOutputRateLimiter |
clone(String key,
WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter) |
Map<String,Object> |
currentState() |
void |
process(ComplexEventChunk complexEventChunk) |
void |
restoreState(Map<String,Object> state) |
void |
start() |
void |
stop() |
cloneComplexEvent, sendToCallBacks, setQueryLock, setStateEventCloner, setStreamEventClonerprotected final Long value
protected final ScheduledExecutorService scheduledExecutorService
protected String id
protected Comparator<ComplexEvent> comparator
protected Scheduler scheduler
protected long scheduledTime
protected String queryName
protected AggregationWindowedPerSnapshotOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, List<Integer> aggregateAttributePositionList, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter, SiddhiAppContext siddhiAppContext, String queryName)
public void process(ComplexEventChunk complexEventChunk)
process in interface Schedulableprocess in class SnapshotOutputRateLimiterpublic void start()
start in class SnapshotOutputRateLimiterpublic void stop()
stop in class SnapshotOutputRateLimiterpublic Map<String,Object> currentState()
currentState in class SnapshotOutputRateLimiterpublic void restoreState(Map<String,Object> state)
restoreState in class SnapshotOutputRateLimiterpublic SnapshotOutputRateLimiter clone(String key, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter)
clone in class SnapshotOutputRateLimiterCopyright © 2017 WSO2. All rights reserved.