Package org.apache.logging.log4j.core
Interface LifeCycle2
-
- All Superinterfaces:
LifeCycle
- All Known Implementing Classes:
AbstractAppender
,AbstractConfiguration
,AbstractFileAppender
,AbstractFilter
,AbstractFilterable
,AbstractLifeCycle
,AbstractOutputStreamAppender
,AbstractTriggeringPolicy
,AbstractWriterAppender
,AppenderAdapter.Adapter
,AppenderControl
,AsyncAppender
,AsyncLoggerConfig
,AsyncLoggerConfig.RootLogger
,AsyncLoggerConfigDisruptor
,AsyncLoggerContext
,BuiltConfiguration
,BurstFilter
,CompositeConfiguration
,CompositeFilter
,CompositeTriggeringPolicy
,ConfigurationScheduler
,ConsoleAppender
,CountingNoOpAppender
,CronTriggeringPolicy
,DefaultConfiguration
,DefaultShutdownCallbackRegistry
,DenyAllFilter
,DynamicThresholdFilter
,FailoverAppender
,FileAppender
,FilterAdapter
,HttpAppender
,IdlePurgePolicy
,JsonConfiguration
,LevelMatchFilter
,LevelRangeFilter
,Log4j1Configuration
,LoggerConfig
,LoggerConfig.RootLogger
,LoggerContext
,MapFilter
,MarkerFilter
,MemoryMappedFileAppender
,NoMarkerFilter
,NoOpTriggeringPolicy
,NullAppender
,NullConfiguration
,OnStartupTriggeringPolicy
,OutputStreamAppender
,PropertiesConfiguration
,PropertiesConfiguration
,RandomAccessFileAppender
,RegexFilter
,RewriteAppender
,RollingFileAppender
,RollingRandomAccessFileAppender
,RoutingAppender
,ScriptAppenderSelector
,ScriptFilter
,SizeBasedTriggeringPolicy
,SmtpAppender
,SocketAppender
,StringMatchFilter
,StructuredDataFilter
,SyslogAppender
,ThreadContextMapFilter
,ThresholdFilter
,TimeBasedTriggeringPolicy
,TimeFilter
,WatchManager
,WriterAppender
,XmlConfiguration
,XmlConfiguration
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
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
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 waittimeUnit
- the time unit of the timeout argument- Returns:
- true if the receiver was stopped cleanly and normally, false otherwise.
- Since:
- 2.7
-
-