Interface Connector

All Superinterfaces:
AutoCloseable, Channel

public interface Connector extends Channel
Handles connection details to specific remote relays Every module should have its connector.
  • Method Details

    • initialize

      void initialize(QuicknoteConfig c)
      Performs the connector initialization. After this method returns, the connector is supposed to be ready to create connections.
      Parameters:
      c - the configuration object.
    • sender

      Sender sender(String name) throws ChannelNotFound
      Returns a sender with the given name. A connector may perform channel pooling, lazy initialization, etc. Specific policies are implementation-dependent.
      Parameters:
      name - the name of the sender to retrieve.
      Returns:
      the sender, ready to operate.
      Throws:
      ChannelNotFound - if the sender cannot be instantiated and/or is unavailable.
    • receiver

      Receiver receiver(String name) throws ChannelNotFound
      Returns a receiver with the given name. A connector may perform channel pooling, lazy initialization, etc. Specific policies are implementation-dependent.
      Parameters:
      name - the name of the receiver to retrieve.
      Returns:
      the receiver, ready to operate.
      Throws:
      ChannelNotFound - if the receiver cannot be instantiated and/or is unavailable.