T
- The typepublic interface LifeCycle<T extends LifeCycle>
extends java.io.Closeable, java.lang.AutoCloseable
Components can implement this interface
Modifier and Type | Method and Description |
---|---|
default void |
close()
Delegates to
stop() . |
boolean |
isRunning() |
default T |
refresh()
Refreshes the current life cycle object.
|
default T |
start()
Starts the lifecyle component.
|
default T |
stop()
Stops the life cycle component.
|
boolean isRunning()
@NonNull default T start()
@NonNull default T stop()
default void close()
stop()
.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
@NonNull default T refresh()