Interface ChannelFactory

    • Method Detail

      • createChannel

        Channel createChannel​(Session session)
                       throws java.io.IOException
        Parameters:
        session - The Session through which the request is made
        Returns:
        The relevant Channel
        Throws:
        java.io.IOException - If failed to create the requested instance
      • createChannel

        static Channel createChannel​(Session session,
                                     java.util.Collection<? extends ChannelFactory> factories,
                                     java.lang.String name)
                              throws java.io.IOException
        Parameters:
        session - The Session through which the request is made
        factories - The available factories
        name - The required factory name to use
        Returns:
        The created Channel - null if no match found
        Throws:
        java.io.IOException - If failed to create the requested instance