public class LastPerEventOutputRateLimiter extends OutputRateLimiter
OutputRateLimiter which will collect pre-defined number of events and the emit only the
last event.latencyTracker, lockWrapper, outputCallback, queryCallbacks, queryName, siddhiAppContext| Constructor and Description |
|---|
LastPerEventOutputRateLimiter(String id,
Integer value) |
| 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, getElementId, getOutputCallback, hasCallBack, init, sendToCallBacks, setLatencyTracker, setOutputCallbackpublic OutputRateLimiter clone(String key)
clone in class OutputRateLimiterpublic void process(ComplexEventChunk complexEventChunk)
process in class OutputRateLimiterpublic void start()
EternalReferencedHolderpublic void stop()
EternalReferencedHolderpublic Map<String,Object> currentState()
Snapshotablepublic void restoreState(Map<String,Object> state)
Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2017 WSO2. All rights reserved.