Interface LifeCycle<T extends LifeCycle<T>>
- Type Parameters:
T- The type
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
ApplicationContext, ApplicationContextLifeCycle<T>, BeanContext, BlockingHttpClient, ConfigurableApplicationContext, ConfigurableBeanContext, EmbeddedApplication<T>, EmbeddedServer, Environment, HttpClient, JdkHttpClient, NettyEmbeddedServer, StreamingHttpClient
- All Known Implementing Classes:
AbstractConcurrentCustomScope, DefaultBeanContext, DefaultHttpClient, DefaultJdkHttpClient, DefaultWatchThread, DeleteEndpointRouteBuilder, JdkBlockingHttpClient, MacOsWatchThread, MessagingApplication, NettyHttpServer, ReadEndpointRouteBuilder, RefreshScope, WriteEndpointRouteBuilder
A life cycle interface providing a start method and extending Closeable which provides a close() method for
termination.
Components can implement this interface
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
-
Method Details
-
isRunning
boolean isRunning()- Returns:
- Whether the component is running
-
start
-
stop
-
close
default void close()Delegates tostop().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
refresh
-