public class WrappedSnapshotOutputRateLimiter extends OutputRateLimiter
latencyTracker, lockWrapper, outputCallback, queryCallbacks| Constructor and Description |
|---|
WrappedSnapshotOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
boolean isGroupBy,
boolean isWindowed,
ExecutionPlanContext executionPlanContext,
String queryName) |
| Modifier and Type | Method and Description |
|---|---|
OutputRateLimiter |
clone(String key) |
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(ExecutionPlanContext executionPlanContext,
LockWrapper lockWrapper) |
void |
init(int outPutAttributeSize,
List<AttributeProcessor> attributeProcessorList,
MetaComplexEvent metaComplexEvent) |
void |
passToCallBacks(ComplexEventChunk complexEventChunk) |
void |
process(ComplexEventChunk complexEventChunk) |
void |
restoreState(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 WrappedSnapshotOutputRateLimiter(String id, Long value, ScheduledExecutorService scheduledExecutorService, boolean isGroupBy, boolean isWindowed, ExecutionPlanContext executionPlanContext, String queryName)
public OutputRateLimiter clone(String key)
clone in class OutputRateLimiterpublic void init(ExecutionPlanContext executionPlanContext, 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 Object[] currentState()
Snapshotablepublic void restoreState(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.