Class SimpleConnectionDirectory

    • Constructor Detail

      • SimpleConnectionDirectory

        public SimpleConnectionDirectory​(Collection<Connection> connections)
        Deprecated.
        Creates a new SimpleConnectionDirectory which provides access to the connections contained within the given Map.
        Parameters:
        connections - A Collection of all connections that should be present in this connection directory.
    • Method Detail

      • putConnection

        public Connection putConnection​(Connection connection)
        Deprecated.
        An internal method for modifying the Connections in this Directory. Returns the previous connection for the given identifier, if found.
        Parameters:
        connection - The connection to add or update the Directory with.
        Returns:
        The previous connection for the connection identifier, if found.
      • removeConnection

        public Connection removeConnection​(String identifier)
        Deprecated.
        An internal method for removing a Connection from this Directory.
        Parameters:
        identifier - The identifier of the Connection to remove.
        Returns:
        The previous connection for the given identifier, if found.