public class BindingsLifecycleController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BindingsLifecycleController.State
Binding states.
|
| Constructor and Description |
|---|
BindingsLifecycleController(List<InputBindingLifecycle> inputBindingLifecycles,
List<OutputBindingLifecycle> outputBindingsLifecycles) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(String bindingName,
BindingsLifecycleController.State state)
General purpose method to change the state of the provided binding.
|
void |
pause(String bindingName)
Convenience method to pause the binding with provided `bindingName`.
|
Binding<?> |
queryState(String name)
Queries the individual state of a binding.
|
List<Map<?,?>> |
queryStates()
Queries the
List of states for all available bindings. |
void |
resume(String bindingName)
Convenience method to resume the binding with provided `bindingName`.
|
void |
start(String bindingName)
Convenience method to start the binding with provided `bindingName`.
|
void |
stop(String bindingName)
Convenience method to stop the binding with provided `bindingName`.
|
public BindingsLifecycleController(List<InputBindingLifecycle> inputBindingLifecycles, List<OutputBindingLifecycle> outputBindingsLifecycles)
public void stop(String bindingName)
bindingName - the name of the binding.public void start(String bindingName)
bindingName - the name of the binding.public void pause(String bindingName)
bindingName - the name of the binding.public void resume(String bindingName)
bindingName - the name of the binding.public void changeState(String bindingName, BindingsLifecycleController.State state)
bindingName - the name of the binding.state - the BindingsLifecycleController.State you wish to set this binding topublic List<Map<?,?>> queryStates()
List of states for all available bindings. The returned list
consists of Binding objects which could be further interrogated
using Binding.isPaused() and Binding.isRunning().Bindingspublic Binding<?> queryState(String name)
Binding object could be further interrogated
using Binding.isPaused() and Binding.isRunning().Binding object.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.