Class WrappedSnapshotOutputRateLimiter<S extends State>
- java.lang.Object
-
- io.siddhi.core.query.output.ratelimit.OutputRateLimiter<S>
-
- io.siddhi.core.query.output.ratelimit.snapshot.WrappedSnapshotOutputRateLimiter<S>
-
- Type Parameters:
S- current state of the RateLimiter
- All Implemented Interfaces:
PartitionCreationListener
public class WrappedSnapshotOutputRateLimiter<S extends State> extends OutputRateLimiter<S>
Implementation ofOutputRateLimiterto be used by Snapshot Output Rate Limiting implementations.
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.query.output.ratelimit.OutputRateLimiter
latencyTracker, lockWrapper, outputCallback, queryCallbacks, stateHolder
-
-
Constructor Summary
Constructors Constructor Description WrappedSnapshotOutputRateLimiter(Long value, boolean groupBy, boolean isWindowed, SiddhiQueryContext siddhiQueryContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StateFactory<S>init()voidinit(int outPutAttributeSize, List<AttributeProcessor> attributeProcessorList, MetaComplexEvent metaComplexEvent)voidinit(SiddhiQueryContext siddhiQueryContext, LockWrapper lockWrapper)voidpartitionCreated()Get called when partition is createdvoidpassToCallBacks(ComplexEventChunk complexEventChunk)voidprocess(ComplexEventChunk complexEventChunk)-
Methods inherited from class io.siddhi.core.query.output.ratelimit.OutputRateLimiter
addQueryCallback, getOutputCallback, hasCallBack, init, process, removeQueryCallback, sendToCallBacks, setOutputCallback
-
-
-
-
Constructor Detail
-
WrappedSnapshotOutputRateLimiter
public WrappedSnapshotOutputRateLimiter(Long value, boolean groupBy, boolean isWindowed, SiddhiQueryContext siddhiQueryContext)
-
-
Method Detail
-
init
public void init(SiddhiQueryContext siddhiQueryContext, LockWrapper lockWrapper)
-
init
public void init(int outPutAttributeSize, List<AttributeProcessor> attributeProcessorList, MetaComplexEvent metaComplexEvent)
-
partitionCreated
public void partitionCreated()
Description copied from interface:PartitionCreationListenerGet called when partition is created
-
init
protected StateFactory<S> init()
- Specified by:
initin classOutputRateLimiter<S extends State>
-
process
public void process(ComplexEventChunk complexEventChunk)
- Specified by:
processin classOutputRateLimiter<S extends State>
-
passToCallBacks
public void passToCallBacks(ComplexEventChunk complexEventChunk)
-
-