Class LastPerEventOutputRateLimiter

  • All Implemented Interfaces:
    PartitionCreationListener

    public class LastPerEventOutputRateLimiter
    extends OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastPerEventOutputRateLimiter.RateLimiterState>
    Implementation of OutputRateLimiter which will collect pre-defined number of events and the emit only the last event.
    • Constructor Detail

      • LastPerEventOutputRateLimiter

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

      • init

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

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

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