public class FirstPerTimeOutputRateLimiter extends OutputRateLimiter implements Schedulable
executionPlanContext, latencyTracker, lockWrapper, outputCallback, queryCallbacks| Constructor and Description |
|---|
FirstPerTimeOutputRateLimiter(String id,
Long value,
ScheduledExecutorService scheduledExecutorService,
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 |
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 FirstPerTimeOutputRateLimiter(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 Object[] currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(Object[] state)
SnapshotablerestoreState in interface Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2018 WSO2. All Rights Reserved.