Class InputBindingLifecycle
java.lang.Object
org.springframework.cloud.stream.binding.InputBindingLifecycle
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
Coordinates binding/unbinding of input binding targets in accordance to the lifecycle
of the host context.
- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Oleg Zhurakousky
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionInputBindingLifecycle
(BindingService bindingService, Map<String, Bindable> bindables) -
Method Summary
-
Constructor Details
-
InputBindingLifecycle
-
-
Method Details
-
getPhase
public int getPhase()Return a high value so that this bean is started after receiving Lifecycle beans are started. Beans that need to start after bindings will set a higher phase value. -
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-