@FunctionalInterface public interface SmartLifecycleSupport extends SmartLifecycle
SmartLifecycleSupport interface is an extension of Spring's SmartLifecycle interface
providing default, convenient behavior for many of the lifecycle methods as well as a serving
as a FunctionalInterface.FunctionalInterface,
SmartLifecycle| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_AUTO_STARTUP |
static boolean |
DEFAULT_IS_RUNNING |
static int |
DEFAULT_PHASE |
| Modifier and Type | Method and Description |
|---|---|
default int |
getPhase() |
default boolean |
isAutoStartup() |
default boolean |
isRunning() |
default void |
stop() |
default void |
stop(Runnable runnable) |
static final boolean DEFAULT_AUTO_STARTUP
static final boolean DEFAULT_IS_RUNNING
static final int DEFAULT_PHASE
default boolean isAutoStartup()
isAutoStartup in interface SmartLifecycledefault void stop(Runnable runnable)
stop in interface SmartLifecycledefault int getPhase()
getPhase in interface PhasedgetPhase in interface SmartLifecycleCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.