Class AsyncAppender.Dispatcher

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    AsyncAppender

    private static class AsyncAppender.Dispatcher
    extends java.lang.Object
    implements java.lang.Runnable
    Event dispatcher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parent

        private final AsyncAppender parent
        Parent AsyncAppender.
      • buffer

        private final java.util.List buffer
        Event buffer.
      • discardMap

        private final java.util.Map discardMap
        Map of DiscardSummary keyed by logger name.
    • Constructor Detail

      • Dispatcher

        public Dispatcher​(AsyncAppender parent,
                          java.util.List buffer,
                          java.util.Map discardMap,
                          AppenderAttachableImpl appenders)
        Create new instance of dispatcher.
        Parameters:
        parent - parent AsyncAppender, may not be null.
        buffer - event buffer, may not be null.
        discardMap - discard map, may not be null.
        appenders - appenders, may not be null.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable