Interface ChannelLifecycleStrategy

All Known Implementing Classes:
BlockingChannelLifecycleStrategy, DefaultChannelLifecycleStrategy, NonBlockingChannelStartStrategy

public interface ChannelLifecycleStrategy
Strategy for handling channel lifecycle within a ChannelList.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(List<Channel> channels)
    Close a list of channels.
    void
    init(List<Channel> channels)
    Initialise a list of channels.
    void
    start(List<Channel> channelList)
    Start a list of channels.
    void
    stop(List<Channel> channels)
    Stop a list of channels.
  • Method Details

    • start

      void start(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(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(List<Channel> channels)
      Stop a list of channels.
      Parameters:
      channels - a list of channels that have previously been started.
    • close

      void close(List<Channel> channels)
      Close a list of channels.
      Parameters:
      channels - a list of channels.