@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 SmartLifecycle
default void stop(Runnable runnable)
stop
in interface SmartLifecycle
default int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.