public class GroupByPerSnapshotOutputRateLimiter extends SnapshotOutputRateLimiter
PerSnapshotOutputRateLimiter for queries with GroupBy.lockWrapper, siddhiAppContext, stateEventCloner, streamEventCloner| Constructor and Description |
|---|
GroupByPerSnapshotOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
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)
Sends the collected unique outputs per group by key upon arrival of timer event from scheduler.
|
void |
restoreState(Map<String,Object> state) |
void |
start() |
void |
stop() |
cloneComplexEvent, sendToCallBacks, setQueryLock, setStateEventCloner, setStreamEventClonerpublic GroupByPerSnapshotOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter, SiddhiAppContext siddhiAppContext, String queryName)
public void process(ComplexEventChunk complexEventChunk)
process in interface Schedulableprocess in class SnapshotOutputRateLimitercomplexEventChunk - Incoming ComplexEventChunkpublic 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 © 2019 WSO2. All rights reserved.