public class FirstGroupByPerTimeOutputRateLimiter extends OutputRateLimiter implements Schedulable
OutputRateLimiter which will collect pre-defined time period and the emit only first
event. This implementation specifically represent GroupBy queries.latencyTracker, lockWrapper, outputCallback, queryCallbacks, siddhiAppContext| Constructor and Description |
|---|
FirstGroupByPerTimeOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
String queryName) |
| Modifier and Type | Method and Description |
|---|---|
OutputRateLimiter |
clone(String key) |
Map<String,Object> |
currentState()
Used to collect the serializable state of the processing element, that need to be
persisted for the reconstructing the element to the same state on a different point of time
|
void |
process(ComplexEventChunk complexEventChunk) |
void |
restoreState(Map<String,Object> state)
Used to restore serialized state of the processing element, for reconstructing
the element to the same state as if was on a previous point of time.
|
void |
start()
This will be called only once and this can be used to acquire
required resources for the processing element.
|
void |
stop()
This will be called only once and this can be used to release
the acquired resources for processing.
|
addQueryCallback, clean, getElementId, getOutputCallback, hasCallBack, init, sendToCallBacks, setLatencyTracker, setOutputCallbackpublic FirstGroupByPerTimeOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, String queryName)
public OutputRateLimiter clone(String key)
clone in class OutputRateLimiterpublic void process(ComplexEventChunk complexEventChunk)
process in interface Schedulableprocess in class OutputRateLimiterpublic void start()
EternalReferencedHolderstart in interface EternalReferencedHolderpublic void stop()
EternalReferencedHolderstop in interface EternalReferencedHolderpublic Map<String,Object> currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(Map<String,Object> state)
SnapshotablerestoreState in interface Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2019 WSO2. All rights reserved.