Package com.adaptris.core
Interface ChannelLifecycleStrategy
-
- All Known Implementing Classes:
BlockingChannelLifecycleStrategy,DefaultChannelLifecycleStrategy,NonBlockingChannelStartStrategy
public interface ChannelLifecycleStrategyStrategy for handling channel lifecycle within aChannelList.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(java.util.List<Channel> channels)Close a list of channels.voidinit(java.util.List<Channel> channels)Initialise a list of channels.voidstart(java.util.List<Channel> channelList)Start a list of channels.voidstop(java.util.List<Channel> channels)Stop a list of channels.
-
-
-
Method Detail
-
start
void start(java.util.List<Channel> channelList) throws CoreException
Start a list of channels.- Parameters:
channelList- a list of channels that have already been initialised.- Throws:
CoreException- wrapping any underlying exception.
-
init
void init(java.util.List<Channel> channels) throws CoreException
Initialise a list of channels.- Parameters:
channels- a list of channels that require initialising.- Throws:
CoreException- wrapping any underlying exception.
-
stop
void stop(java.util.List<Channel> channels)
Stop a list of channels.- Parameters:
channels- a list of channels that have previously been started.
-
close
void close(java.util.List<Channel> channels)
Close a list of channels.- Parameters:
channels- a list of channels.
-
-