public class DefaultChannelLifecycleStrategy extends java.lang.Object implements ChannelLifecycleStrategy
This strategy is functionally equivalent to the way in which channel operations were handled in 2.4.x and blocks until all the channel operations are complete.
In the adapter configuration file this class is aliased as default-channel-lifecycle-strategy which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
DefaultChannelLifecycleStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
close(java.util.List<Channel> channels)
Close a list of channels.
|
void |
init(java.util.List<Channel> channels)
Initialise a list of channels.
|
void |
start(java.util.List<Channel> channels)
Start a list of channels.
|
void |
stop(java.util.List<Channel> channels)
Stop a list of channels.
|
public void start(java.util.List<Channel> channels) throws CoreException
ChannelLifecycleStrategy
start
in interface ChannelLifecycleStrategy
channels
- a list of channels that have already been initialised.CoreException
- wrapping any underlying exception.ChannelLifecycleStrategy.start(java.util.List)
public void init(java.util.List<Channel> channels) throws CoreException
ChannelLifecycleStrategy
init
in interface ChannelLifecycleStrategy
channels
- a list of channels that require initialising.CoreException
- wrapping any underlying exception.ChannelLifecycleStrategy.init(java.util.List)
public void stop(java.util.List<Channel> channels)
ChannelLifecycleStrategy
stop
in interface ChannelLifecycleStrategy
channels
- a list of channels that have previously been started.ChannelLifecycleStrategy.stop(java.util.List)
public void close(java.util.List<Channel> channels)
ChannelLifecycleStrategy
close
in interface ChannelLifecycleStrategy
channels
- a list of channels.ChannelLifecycleStrategy.close(java.util.List)