Module spring.cloud.stream
Class OutputBindingLifecycle
java.lang.Object
org.springframework.cloud.stream.binding.AbstractBindingLifecycle
org.springframework.cloud.stream.binding.OutputBindingLifecycle
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
Coordinates binding/unbinding of output 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
ConstructorsConstructorDescriptionOutputBindingLifecycle(BindingService bindingService, Map<String, Bindable> bindables) -
Method Summary
Modifier and TypeMethodDescriptionintgetPhase()Return a low value so that this bean is started after receiving Lifecycle beans are started.Methods inherited from class org.springframework.cloud.stream.binding.AbstractBindingLifecycle
isAutoStartup, isRunning, start, startBindable, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Constructor Details
-
OutputBindingLifecycle
-
-
Method Details
-
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.
-