public class WrappedSnapshotOutputRateLimiter extends OutputRateLimiter
OutputRateLimiter to be used by Snapshot Output Rate Limiting implementations.latencyTracker, lockWrapper, outputCallback, queryCallbacks, queryName| Constructor and Description |
|---|
WrappedSnapshotOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
boolean isGroupBy,
boolean isWindowed,
SiddhiAppContext siddhiAppContext,
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 |
init(int outPutAttributeSize,
List<AttributeProcessor> attributeProcessorList,
MetaComplexEvent metaComplexEvent) |
void |
init(SiddhiAppContext siddhiAppContext,
LockWrapper lockWrapper) |
void |
passToCallBacks(ComplexEventChunk complexEventChunk) |
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 WrappedSnapshotOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, boolean isGroupBy, boolean isWindowed, SiddhiAppContext siddhiAppContext, String queryName)
public OutputRateLimiter clone(String key)
clone in class OutputRateLimiterpublic void init(SiddhiAppContext siddhiAppContext, LockWrapper lockWrapper)
public void init(int outPutAttributeSize,
List<AttributeProcessor> attributeProcessorList,
MetaComplexEvent metaComplexEvent)
public void start()
EternalReferencedHolderpublic void stop()
EternalReferencedHolderpublic void process(ComplexEventChunk complexEventChunk)
process in class OutputRateLimiterpublic void passToCallBacks(ComplexEventChunk complexEventChunk)
public 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 © 2019 WSO2. All rights reserved.