Class Destination

  • All Implemented Interfaces:
    Recyclable

    public class Destination
    extends java.lang.Object
    implements Recyclable
    Context information about a destination of outgoing calls.
    • Constructor Detail

      • Destination

        public Destination()
    • Method Detail

      • withAddress

        public Destination withAddress​(@Nullable
                                       java.lang.CharSequence address)
      • withUserAddress

        public Destination withUserAddress​(@Nullable
                                           java.lang.CharSequence address)
      • getAddress

        public java.lang.StringBuilder getAddress()
      • withUserPort

        public Destination withUserPort​(int port)
      • getPort

        public int getPort()
      • withAddressPort

        public Destination withAddressPort​(@Nullable
                                           java.lang.String addressPort)
        Parameters:
        addressPort - host address and port in the following format 'host:3128'
        Returns:
        destination with updated address and port
      • hasContent

        public boolean hasContent()
      • resetState

        public void resetState()
        Description copied from interface: Recyclable
        resets pooled object state so it can be reused
        Specified by:
        resetState in interface Recyclable
      • withSocketAddress

        public Destination withSocketAddress​(java.net.SocketAddress socketAddress)
      • withInetSocketAddress

        public Destination withInetSocketAddress​(java.net.InetSocketAddress inetSocketAddress)
      • withInetAddress

        public Destination withInetAddress​(java.net.InetAddress inetAddress)