Interface PurgePolicy

All Known Implementing Classes:
IdlePurgePolicy

public interface PurgePolicy
Policy for purging routed appenders
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize(RoutingAppender routingAppender)
    Initializes with routing appender
    void
    Activates purging appenders.
    void
    update(String key, LogEvent event)
     
  • Method Details

    • purge

      void purge()
      Activates purging appenders. Note that PurgePolicy implementations are responsible for invoking this method themselves.
    • update

      void update(String key, LogEvent event)
      Parameters:
      key - routed appender key
      event - Provides contextual information about a logged message.
    • initialize

      void initialize(RoutingAppender routingAppender)
      Initializes with routing appender
      Parameters:
      routingAppender - the routed appender for purging