public class PassThroughOutputRateLimiter extends OutputRateLimiter
OutputRateLimiter which will pass through events without doing any rate limiting. This
is the default rate limiting strategy used by Siddhi.latencyTracker, lockWrapper, outputCallback, queryCallbacks, queryName, siddhiAppContext| Constructor and Description |
|---|
PassThroughOutputRateLimiter(String id) |
| Modifier and Type | Method and Description |
|---|---|
PassThroughOutputRateLimiter |
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 PassThroughOutputRateLimiter(String id)
public PassThroughOutputRateLimiter 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 © 2018 WSO2. All rights reserved.