public class AggregationWindowedPerSnapshotOutputRateLimiter extends SnapshotOutputRateLimiter
| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
aggregateAttributePositionList |
protected Comparator<ComplexEvent> |
comparator |
protected LinkedList<ComplexEvent> |
eventList |
protected String |
id |
protected String |
queryName |
protected ScheduledExecutorService |
scheduledExecutorService |
protected long |
scheduledTime |
protected Scheduler |
scheduler |
protected Long |
value |
executionPlanContext, lockWrapper, stateEventCloner, streamEventCloner| Modifier | Constructor and Description |
|---|---|
protected |
AggregationWindowedPerSnapshotOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
List<Integer> aggregateAttributePositionList,
WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter,
ExecutionPlanContext executionPlanContext,
String queryName) |
| Modifier and Type | Method and Description |
|---|---|
SnapshotOutputRateLimiter |
clone(String key,
WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter) |
Object[] |
currentState() |
void |
process(ComplexEventChunk complexEventChunk) |
void |
restoreState(Object[] state) |
void |
start() |
void |
stop() |
cloneComplexEvent, sendToCallBacks, setQueryLock, setStateEventCloner, setStreamEventClonerprotected String id
protected final Long value
protected LinkedList<ComplexEvent> eventList
protected Comparator<ComplexEvent> comparator
protected final ScheduledExecutorService scheduledExecutorService
protected Scheduler scheduler
protected long scheduledTime
protected String queryName
protected AggregationWindowedPerSnapshotOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, List<Integer> aggregateAttributePositionList, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter, ExecutionPlanContext executionPlanContext, 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 Object[] currentState()
currentState in class SnapshotOutputRateLimiterpublic void restoreState(Object[] state)
restoreState in class SnapshotOutputRateLimiterpublic SnapshotOutputRateLimiter clone(String key, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter)
clone in class SnapshotOutputRateLimiterCopyright © 2018 WSO2. All Rights Reserved.