Class OutputBindingLifecycle
- java.lang.Object
-
- org.springframework.cloud.stream.binding.OutputBindingLifecycle
-
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class OutputBindingLifecycle extends Object
Coordinates binding/unbinding of output binding targets in accordance to the lifecycle of the host context.- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Oleg Zhurakousky
-
-
Constructor Summary
Constructors Constructor Description OutputBindingLifecycle(BindingService bindingService, Map<String,Bindable> bindables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPhase()Return a low value so that this bean is started after receiving Lifecycle beans are started.booleanisAutoStartup()booleanisRunning()voidstart()voidstop()voidstop(Runnable callback)
-
-
-
Constructor Detail
-
OutputBindingLifecycle
public OutputBindingLifecycle(BindingService bindingService, Map<String,Bindable> bindables)
-
-
Method Detail
-
getPhase
public int getPhase()
Return a low value so that this bean is started after receiving Lifecycle beans are started. Beans that need to start before bindings will set a lower phase value.
-
start
public void start()
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(Runnable callback)
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
-