Class AllPerEventOutputRateLimiter

  • All Implemented Interfaces:
    PartitionCreationListener

    public class AllPerEventOutputRateLimiter
    extends OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.AllPerEventOutputRateLimiter.RateLimiterState>
    Implementation of OutputRateLimiter which will collect pre-defined number of events and the emit all collected events as a batch.
    • Constructor Detail

      • AllPerEventOutputRateLimiter

        public AllPerEventOutputRateLimiter​(String id,
                                            Integer value)
    • Method Detail

      • init

        protected StateFactory<io.siddhi.core.query.output.ratelimit.event.AllPerEventOutputRateLimiter.RateLimiterState> init()
        Specified by:
        init in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.AllPerEventOutputRateLimiter.RateLimiterState>
      • process

        public void process​(ComplexEventChunk complexEventChunk)
        Specified by:
        process in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.AllPerEventOutputRateLimiter.RateLimiterState>
      • partitionCreated

        public void partitionCreated()
        Description copied from interface: PartitionCreationListener
        Get called when partition is created