Interface LifeCycle
- All Known Subinterfaces:
 Connector, Handler, Handler, Handler, Handler.Collection, Handler.Container, Handler.Singleton, HandlerContainer, HandlerContainer, HandlerContainer, NetworkConnector, ResourceFactory.LifeCycle, Scheduler, ServletContextHandler.ServletContainerInitializerCaller, ServletContextHandler.ServletContainerInitializerCaller, ServletContextHandler.ServletContainerInitializerCaller, ServletContextHandler.ServletContainerInitializerCaller, SessionCache, SessionDataMap, SessionDataStore, SessionIdManager, SessionManager
- All Known Implementing Classes:
 AbstractConnectionFactory, AbstractConnectionPool, AbstractConnector, AbstractConnectorHttpClientTransport, AbstractContextProvider, AbstractHandler, AbstractHandler, AbstractHandler, AbstractHandler.ErrorDispatchHandler, AbstractHandler.ErrorDispatchHandler, AbstractHandlerContainer, AbstractHandlerContainer, AbstractHandlerContainer, AbstractHTTP2ServerConnectionFactory, AbstractHTTP3ServerConnectionFactory, AbstractHttpClientTransport, AbstractLeakPreventer, AbstractLifeCycle, AbstractLoginService, AbstractNetworkConnector, AbstractQuicheServerConnectionFactory, AbstractSession, AbstractSessionCache, AbstractSessionDataStore, AbstractSessionManager, AcceptRateLimit, AdaptiveExecutionStrategy, AllowedResourceAliasChecker, ALPNServerConnectionFactory, AnnotationConfiguration.DiscoveredServletContainerInitializerHolder, AnnotationConfiguration.DiscoveredServletContainerInitializerHolder, AnnotationConfiguration.DiscoveredServletContainerInitializerHolder, AnnotationConfiguration.DiscoveredServletContainerInitializerHolder, AppContextLeakPreventer, AsyncDelayHandler, AsyncDelayHandler, AsyncRequestLogWriter, AttributeContainerMap, AWTLeakPreventer, BaseHolder, BaseHolder, BaseHolder, BaseHolder, BrotliCompression, BufferedResponseHandler, BufferedResponseHandler, BufferedResponseHandler, BundleContextProvider, BundleWebAppProvider, CachingSessionDataStore, ClientConnectionFactory.Info, ClientConnectionFactoryOverHTTP2, ClientConnectionFactoryOverHTTP2.HTTP2, ClientConnectionFactoryOverHTTP3, ClientConnectionFactoryOverHTTP3.HTTP3, ClientConnector, ClientConnector.ClientSelectorManager, ClientProtocolSession, ClientQuicConfiguration, Compression, CompressionConfig, CompressionContentDecoderFactory, CompressionHandler, CompressionPool, ConditionalHandler, ConditionalHandler.Abstract, ConditionalHandler.DontHandle, ConditionalHandler.ElseNext, ConditionalHandler.Reject, ConditionalHandler.SkipNext, ConnectHandler, ConnectHandler.ConnectManager, ConnectionLimit, ConnectionStatistics, ConnectorServer, ConstraintSecurityHandler, ConstraintSecurityHandler, ConstraintSecurityHandler, ConstraintSecurityHandler, ContainerLifeCycle, ContentDecoder.Factories, ContentDecoder.Factory, ContextHandler, ContextHandler, ContextHandler, ContextHandler.CoreContextHandler, ContextHandler.CoreContextHandler, ContextHandlerCollection, CoreAppContext, CrossOriginHandler, CustomRequestLog, DatagramServerConnector, DataSourceLoginService, DebugHandler, DebugHandler, DebugHandler, DebugListener, DebugListener, DebugListener, DebugListener, DefaultHandler, DefaultSessionCache, DefaultSessionIdManager, DeflaterPool, DelayedHandler, DelegatingThreadPool, DeploymentScanner, DetectorConnectionFactory, DoSHandler, DoSHandler.DelayedRejectHandler, DriverManagerLeakPreventer, DumpHandler, DuplexConnectionPool, EagerContentHandler, EagerFormHandler, EagerFormHandler, EchoHandler, EchoHandler.Buffered, EchoHandler.BufferedAsync, EchoHandler.Reactive, EchoHandler.Stream, ErrorHandler, ErrorHandler, ErrorPageErrorHandler, ErrorPageErrorHandler, EventsHandler, ExecutorThreadPool, FastCGIProxyHandler, FileBufferedResponseHandler, FileBufferedResponseHandler, FileSessionDataStore, FilterHolder, FilterHolder, FilterHolder, FilterHolder, GracefulHandler, GzipCompression, GzipHandler, Handler.Abstract, Handler.Abstract.NonBlocking, Handler.AbstractContainer, Handler.Sequence, Handler.Wrapper, HandlerCollection, HandlerCollection, HandlerList, HandlerList, HandlerWrapper, HandlerWrapper, HashLoginService, HazelcastSessionDataStore, Holder, Holder, Holder, Holder, HotSwapHandler, HotSwapHandler, HotSwapHandler, HouseKeeper, HTTP2Client, HTTP2CServerConnectionFactory, HTTP2ServerConnectionFactory, HTTP2Session, HTTP3Client, HTTP3ServerConnectionFactory, HTTP3Session, HTTP3SessionClient, HttpClient, HttpClientConnectionFactory.HTTP11, HttpClientTransportDynamic, HttpClientTransportOverFCGI, HttpClientTransportOverHTTP, HttpClientTransportOverHTTP2, HttpClientTransportOverHTTP3, HttpConnectionFactory, HttpDestination, HttpSpiContextHandler, IdleTimeoutHandler, IdleTimeoutHandler, IdleTimeoutHandler, IncludeExcludeConnectionStatistics, InetAccessHandler, InetAccessHandler, InetAccessHandler, InflaterPool, JAASLoginService, JakartaWebSocketClientContainer, JakartaWebSocketClientContainer, JakartaWebSocketClientContainer, JakartaWebSocketContainer, JakartaWebSocketContainer, JakartaWebSocketContainer, JakartaWebSocketServerContainer, JakartaWebSocketServerContainer, JakartaWebSocketServerContainer, JakartaWebSocketShutdownContainer, JakartaWebSocketShutdownContainer, JakartaWebSocketShutdownContainer, JavaxWebSocketClientContainer, JavaxWebSocketContainer, JavaxWebSocketServerContainer, JavaxWebSocketShutdownContainer, JDBCLoginService, JDBCSessionDataStore, JettyWebSocketFrameHandlerFactory, JettyWebSocketFrameHandlerFactory, JettyWebSocketFrameHandlerFactory, JettyWebSocketServerContainer, JettyWebSocketServerContainer, JettyWebSocketServerContainer, JettyWebSocketServerContainer, KeyStoreScanner, LatencyRecordingHandler, ListenerHolder, ListenerHolder, ListenerHolder, ListenerHolder, LocalConnector, LowResourceMonitor, ManagedSelector, MemcachedSessionDataMap, MemoryConnector, MongoSessionDataStore, MonitoredQueuedThreadPool, MovedContextHandler, MultiplexConnectionPool, NegotiatingServerConnectionFactory, NetworkConnectionLimit, NetworkTrafficServerConnector, NoSqlSessionDataStore, NullSessionCache, NullSessionDataStore, ObjectStreamSessionDataStore, OpenIdConfiguration, OpenIdLoginService, OptionalSslConnectionFactory, PathMappingsHandler, PathMappingsHandler.NoContext, PropertyUserStore, PropertyUserStoreManager, ProtocolSession, ProxyConnectionFactory, ProxyHandler, ProxyHandler.Forward, ProxyHandler.Reverse, QoSHandler, QueuedThreadPool, QuicConfiguration, QuicheClientQuicConfiguration, QuicheServerConnectionFactory, QuicheServerConnector, QuicheServerQuicConfiguration, QuicheSession, RandomConnectionPool, RawHTTP2ServerConnectionFactory, RawHTTP3ServerConnectionFactory, RequestLogWriter, ReservedThreadExecutor, ResourceHandler, ResourceHandler, ResourceHandler, ResourceHandler.ResourceContext, RewriteHandler, RoundRobinConnectionPool, Scanner, ScheduledExecutorScheduler, ScopedHandler, ScopedHandler, SecuredRedirectHandler, SecuredRedirectHandler, SecuredRedirectHandler, SecurityHandler, SecurityHandler, SecurityHandler, SecurityHandler.PathMapped, SelectorManager, Server, ServerConnector, ServerConnector.ServerConnectorManager, ServerFCGIConnectionFactory, ServerProtocolSession, ServerQuicConfiguration, ServerWebSocketContainer, ServletContainerInitializerHolder, ServletContainerInitializerHolder, ServletContainerInitializerHolder, ServletContainerInitializerHolder, ServletContextHandler, ServletContextHandler, ServletContextHandler, ServletContextHandler, ServletContextHandler.Initializer, ServletContextHandler.Initializer, ServletContextHandler.ServletContainerInitializerStarter, ServletContextHandler.ServletContainerInitializerStarter, ServletContextHandler.ServletContainerInitializerStarter, ServletContextHandler.ServletContainerInitializerStarter, ServletHandler, ServletHandler, ServletHandler, ServletHandler, ServletHolder, ServletHolder, ServletHolder, ServletHolder, ServletTester, ServletTester, ServletTester, ServletTester, SessionContainer, SessionContainer, SessionHandler, SessionHandler, SessionHandler, SessionHandler, SessionHandler, SessionTracker, SessionTracker, SessionTracker, SessionTracker, SessionTracker, SessionTracker, SessionTracker, ShutdownHandler, SizeLimitHandler, SizeLimitHandler, Slf4jRequestLogWriter, SPNEGOLoginService, SslConnectionFactory, SslContextFactory, SslContextFactory.Client, SslContextFactory.Server, StandardDeployer, StateTrackingHandler, StaticAppContext, StatisticsHandler, StatisticsHandler.MinimumDataRateHandler, StopLifeCycle, Sweeper, SymlinkAllowedResourceAliasChecker, ThreadLimitHandler, ThreadLimitHandler, ThreadLimitHandler, TimerScheduler, TrailingSlashAliasChecker, TryPathsHandler, UnixDomainServerConnector, UnixDomainServerConnector.UnixDomainSelectorManager, UserStore, ValidatingConnectionPool, VirtualThreadPool, WebAppContext, WebAppContext, WebAppContext, WebAppContext, WebSocketClient, WebSocketClient, WebSocketClient, WebSocketComponents, WebSocketCoreClient, WebSocketServerComponents, WebSocketUpgradeHandler, WebSocketUpgradeHandler, ZstandardCompression
The lifecycle interface for generic components.
Classes implementing this interface have a defined life cycle defined by the methods of this interface.
Classes implementing this interface have a defined life cycle defined by the methods of this interface.
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEventListener(EventListener listener) booleanisFailed()booleanbooleanbooleanbooleanbooleanbooleanremoveEventListener(EventListener listener) voidstart()Starts the component.static voidUtility to start an object if it is a LifeCycle and to convert any exception thrown to aRuntimeExceptionvoidstop()Stops the component.static voidUtility to stop an object if it is a LifeCycle and to convert any exception thrown to aRuntimeException 
- 
Method Details
- 
start
Starts the component.- Throws:
 Exception- If the component fails to start- See Also:
 
 - 
start
Utility to start an object if it is a LifeCycle and to convert any exception thrown to aRuntimeException- Parameters:
 object- The instance to start.- Throws:
 RuntimeException- if the call to start throws an exception.
 - 
stop
Stops the component. The component may wait for current activities to complete normally, but it can be interrupted.- Throws:
 Exception- If the component fails to stop- See Also:
 
 - 
stop
Utility to stop an object if it is a LifeCycle and to convert any exception thrown to aRuntimeException- Parameters:
 object- The instance to stop.- Throws:
 RuntimeException- if the call to stop throws an exception.
 - 
isRunning
boolean isRunning()- Returns:
 - true if the component is starting or has been started.
 
 - 
isStarted
boolean isStarted()- Returns:
 - true if the component has been started.
 - See Also:
 
 - 
isStarting
boolean isStarting()- Returns:
 - true if the component is starting.
 - See Also:
 
 - 
isStopping
boolean isStopping()- Returns:
 - true if the component is stopping.
 - See Also:
 
 - 
isStopped
boolean isStopped()- Returns:
 - true if the component has been stopped.
 - See Also:
 
 - 
isFailed
boolean isFailed()- Returns:
 - true if the component has failed to start or has failed to stop.
 
 - 
addEventListener
 - 
removeEventListener
 
 -