Interface Connection

    • Method Detail

      • session

        Session session()
        Returns a newly created session TODO does the Connection's channel-max property limit how many sessions can be created, or opened, or neither?
      • sessionHead

        Session sessionHead​(java.util.EnumSet<EndpointState> local,
                            java.util.EnumSet<EndpointState> remote)
        Returns the head of the list of sessions in the specified states. Typically used to discover sessions whose remote state has acquired particular values, e.g. sessions that have been remotely opened or closed. TODO what ordering guarantees on the returned "linked list" are provided?
        See Also:
        Session.next(EnumSet, EnumSet)
      • linkHead

        Link linkHead​(java.util.EnumSet<EndpointState> local,
                      java.util.EnumSet<EndpointState> remote)
        Returns the head of the list of links in the specified states. Typically used to discover links whose remote state has acquired particular values, e.g. links that have been remotely opened or closed.
        See Also:
        Link.next(EnumSet, EnumSet)
      • setContainer

        void setContainer​(java.lang.String container)
      • getContainer

        java.lang.String getContainer()
      • setHostname

        void setHostname​(java.lang.String hostname)
        Set the name of the host (either fully qualified or relative) to which this connection is connecting to. This information may be used by the remote peer to determine the correct back-end service to connect the client to. This value will be sent in the Open performative. Note that it is illegal to set the hostname to a numeric IP address or include a port number.
        Parameters:
        hostname - the RFC1035 compliant host name.
      • getHostname

        java.lang.String getHostname()
      • getRemoteContainer

        java.lang.String getRemoteContainer()
      • getRemoteHostname

        java.lang.String getRemoteHostname()
      • setOfferedCapabilities

        void setOfferedCapabilities​(Symbol[] capabilities)
      • setDesiredCapabilities

        void setDesiredCapabilities​(Symbol[] capabilities)
      • getRemoteOfferedCapabilities

        Symbol[] getRemoteOfferedCapabilities()
      • getRemoteDesiredCapabilities

        Symbol[] getRemoteDesiredCapabilities()
      • getRemoteProperties

        java.util.Map<Symbol,​java.lang.Object> getRemoteProperties()
      • setProperties

        void setProperties​(java.util.Map<Symbol,​java.lang.Object> properties)
      • setContext

        void setContext​(java.lang.Object context)
        Description copied from interface: Endpoint
        Sets an arbitrary an application owned object on the end-point. This object is not used by Proton.
        Specified by:
        setContext in interface Endpoint
      • collect

        void collect​(Collector collector)