Interface PersistentOutboundConnection


  • public interface PersistentOutboundConnection
    Activity representing a persistent outbound connection to a SIP host. Applications may create this activity by calling ClientTransaction.getPersistentOutboundConnection() after receiving a response on a persistent connection, for example after receiving the response to the initial REGISTER.

    The activity emits the events ConnectionDownEvent and ConnectionUpEvent when the underlying TCP connection fails or is restored.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Endpoint getPeer()
      Get the remote endpoint of this connection
      boolean isInService()
      Determine if the connection is in service, that is, the connection is up and available for sending requests.
      boolean isTerminated()
      Determine if the connection has been closed permanently.
    • Method Detail

      • getPeer

        Endpoint getPeer()
        Get the remote endpoint of this connection
      • isInService

        boolean isInService()
        Determine if the connection is in service, that is, the connection is up and available for sending requests. If the underlying network connection fails, the RA will automatically try to reconnect as per the procedures in draft-ietf-sip-outbound-03. While the RA is attempting to reconnect, the connection is not in service.
        Returns:
        true if the connection is currently up and available for sending requests, otherwise false.
      • isTerminated

        boolean isTerminated()
        Determine if the connection has been closed permanently.
        Returns:
        true if the connection has been closed permanently, otherwise false.