Interface LifeCycle2

All Superinterfaces:
LifeCycle
All Known Implementing Classes:
AbstractAppender, AbstractConfiguration, AbstractConnectionSource, AbstractDatabaseAppender, AbstractDriverManagerConnectionSource, AbstractFileAppender, AbstractFilter, AbstractFilterable, AbstractLifeCycle, AbstractOutputStreamAppender, AbstractTriggeringPolicy, AbstractWriterAppender, AppenderControl, AsyncAppender, AsyncLoggerConfig, AsyncLoggerConfig.RootLogger, AsyncLoggerConfigDisruptor, AsyncLoggerContext, BuiltConfiguration, BurstFilter, CompositeConfiguration, CompositeFilter, CompositeTriggeringPolicy, ConfigurationScheduler, ConsoleAppender, CountingNoOpAppender, CronTriggeringPolicy, DataSourceConnectionSource, DefaultConfiguration, DefaultShutdownCallbackRegistry, DenyAllFilter, DriverManagerConnectionSource, DynamicThresholdFilter, FactoryMethodConnectionSource, FailoverAppender, FileAppender, HttpAppender, IdlePurgePolicy, JdbcAppender, JeroMqAppender, JmsAppender, JsonConfiguration, KafkaAppender, LevelMatchFilter, LevelRangeFilter, LoggerConfig, LoggerConfig.RootLogger, LoggerContext, MapFilter, MarkerFilter, MemoryMappedFileAppender, MutableThreadContextMapFilter, NoMarkerFilter, NoOpTriggeringPolicy, NoSqlAppender, NullAppender, NullConfiguration, OnStartupTriggeringPolicy, OutputStreamAppender, PropertiesConfiguration, RandomAccessFileAppender, RegexFilter, RewriteAppender, RollingFileAppender, RollingRandomAccessFileAppender, RoutingAppender, ScriptAppenderSelector, ScriptFilter, SizeBasedTriggeringPolicy, SmtpAppender, SocketAppender, StringMatchFilter, StructuredDataFilter, SyslogAppender, ThreadContextMapFilter, ThresholdFilter, TimeBasedTriggeringPolicy, TimeFilter, WatchManager, WriterAppender, 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