Class CyclicBufferAppender<E>

  • All Implemented Interfaces:
    Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle


    public class CyclicBufferAppender<E>
    extends AppenderBase<E>
    CyclicBufferAppender stores events in a cyclic buffer of user-specified size. As the name suggests, if the size of the buffer is N, only the latest N events are available.
    • Constructor Detail

      • CyclicBufferAppender

        public CyclicBufferAppender()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • append

        protected void append(E eventObject)
      • getLength

        public int getLength()
      • get

        public E get(int i)
      • reset

        public void reset()
      • getMaxSize

        public int getMaxSize()
        Set the size of the cyclic buffer.
      • setMaxSize

        public void setMaxSize(int maxSize)