Interface LifeCycle2

All Superinterfaces:
LifeCycle
All Known Implementing Classes:
AbstractAppender, AbstractConfiguration, AbstractConnectionSource, AbstractDatabaseAppender, AbstractDriverManagerConnectionSource, AbstractFileAppender, AbstractFilter, AbstractFilterable, AbstractLifeCycle, AbstractOutputStreamAppender, AbstractTriggeringPolicy, AbstractWriterAppender, AppenderAdapter.Adapter, AppenderControl, AsyncAppender, AsyncLoggerConfig, AsyncLoggerConfig.RootLogger, AsyncLoggerConfigDisruptor, AsyncLoggerContext, AsyncLoggerDisruptor, BuiltConfiguration, BurstFilter, CompositeConfiguration, CompositeFilter, CompositeTriggeringPolicy, ConfigurationScheduler, ConsoleAppender, CountingNoOpAppender, CronTriggeringPolicy, DataSourceConnectionSource, DefaultConfiguration, DefaultShutdownCallbackRegistry, DenyAllFilter, DriverManagerConnectionSource, DynamicThresholdFilter, FactoryMethodConnectionSource, FailoverAppender, FileAppender, FilterAdapter, HttpAppender, IdlePurgePolicy, JdbcAppender, JeroMqAppender, JmsAppender, JsonConfiguration, LevelMatchFilter, LevelRangeFilter, Log4j1Configuration, Log4jWebInitializerImpl, LoggerConfig, LoggerConfig.RootLogger, LoggerContext, MapFilter, MarkerFilter, MemoryMappedFileAppender, NoMarkerFilter, NoOpTriggeringPolicy, NoSqlAppender, NullAppender, NullConfiguration, OnStartupTriggeringPolicy, OutputStreamAppender, PropertiesConfiguration, PropertiesConfiguration, RandomAccessFileAppender, RegexFilter, RewriteAppender, RollingFileAppender, RollingRandomAccessFileAppender, RoutingAppender, RoutingAppender.CreatedRouteAppenderControl, RoutingAppender.ReferencedRouteAppenderControl, RoutingAppender.RouteAppenderControl, ScriptAppenderSelector, ScriptFilter, ServletAppender, SizeBasedTriggeringPolicy, SmtpAppender, SocketAppender, StringMatchFilter, StructuredDataFilter, SyslogAppender, ThreadContextMapFilter, ThresholdFilter, TimeBasedTriggeringPolicy, TimeFilter, WatchManager, WriterAppender, XmlConfiguration, XmlConfiguration, YamlConfiguration

public interface LifeCycle2 extends LifeCycle
Extends the LifeCycle interface.

This interface should be merged with the super-interface in 3.0.

Since:
2.7
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle

    LifeCycle.State
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    stop(long timeout, TimeUnit timeUnit)
    Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.

    Methods inherited from interface org.apache.logging.log4j.core.LifeCycle

    getState, initialize, isStarted, isStopped, start, stop
  • Method Details

    • stop

      boolean stop(long timeout, TimeUnit timeUnit)
      Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
      Parameters:
      timeout - the maximum time to wait
      timeUnit - the time unit of the timeout argument
      Returns:
      true if the receiver was stopped cleanly and normally, false otherwise.
      Since:
      2.7