Package org.eclipse.jetty.util.component
Class AbstractLifeCycle
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
- All Implemented Interfaces:
LifeCycle
- Direct Known Subclasses:
AcceptRateLimit,AllowedResourceAliasChecker,BaseHolder,ConnectionLimit,ConnectionStatistics,ConnectorStatistics,ContainerLifeCycle,DebugListener,HouseKeeper,LeakDetector,PathWatcher,RequestLogWriter,ReservedThreadExecutor,Scanner,ScheduledExecutorScheduler,ServletContextHandler.Initializer,Slf4jRequestLogWriter,SpnegoLoginService,SslContextFactory,StopLifeCycle,Sweeper,TimerScheduler,UserStore
@ManagedObject("Abstract Implementation of LifeCycle")
@Deprecated(since="2021-05-27")
public abstract class AbstractLifeCycle
extends Object
implements LifeCycle
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Basic implementation of the life cycle interface for components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.this class is redundant now thatLifeCycle.Listenerhas default methods.Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifeCycleListener(LifeCycle.Listener listener) Deprecated.getState()Deprecated.static StringDeprecated.longDeprecated.booleanisFailed()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidremoveLifeCycleListener(LifeCycle.Listener listener) Deprecated.voidsetStopTimeout(long stopTimeout) Deprecated.final voidstart()Deprecated.Starts the component.final voidstop()Deprecated.Stops the component.toString()Deprecated.
-
Field Details
-
STOPPED
Deprecated.- See Also:
-
FAILED
Deprecated.- See Also:
-
STARTING
Deprecated.- See Also:
-
STARTED
Deprecated.- See Also:
-
STOPPING
Deprecated.- See Also:
-
RUNNING
Deprecated.- See Also:
-
-
Constructor Details
-
AbstractLifeCycle
public AbstractLifeCycle()Deprecated.
-
-
Method Details
-
start
Deprecated.Description copied from interface:LifeCycleStarts the component. -
stop
Deprecated.Description copied from interface:LifeCycleStops the component. The component may wait for current activities to complete normally, but it can be interrupted. -
isRunning
public boolean isRunning()Deprecated. -
isStarted
public boolean isStarted()Deprecated. -
isStarting
public boolean isStarting()Deprecated.- Specified by:
isStartingin interfaceLifeCycle- Returns:
- true if the component is starting.
- See Also:
-
isStopping
public boolean isStopping()Deprecated.- Specified by:
isStoppingin interfaceLifeCycle- Returns:
- true if the component is stopping.
- See Also:
-
isStopped
public boolean isStopped()Deprecated. -
isFailed
public boolean isFailed()Deprecated. -
addLifeCycleListener
Deprecated.- Specified by:
addLifeCycleListenerin interfaceLifeCycle
-
removeLifeCycleListener
Deprecated.- Specified by:
removeLifeCycleListenerin interfaceLifeCycle
-
getState
@ManagedAttribute(value="Lifecycle State for this instance", readonly=true) public String getState()Deprecated. -
getState
Deprecated. -
getStopTimeout
Deprecated. -
setStopTimeout
public void setStopTimeout(long stopTimeout) Deprecated. -
toString
Deprecated.
-