Class Endpoint.Builder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      okio.ByteString ipv4  
      okio.ByteString ipv6  
      java.lang.Integer port  
      java.lang.String service_name  
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Endpoint build()  
      Endpoint.Builder ipv4​(okio.ByteString ipv4)
      4 byte representation of the primary IPv4 address associated with this connection.
      Endpoint.Builder ipv6​(okio.ByteString ipv6)
      16 byte representation of the primary IPv6 address associated with this connection.
      Endpoint.Builder port​(java.lang.Integer port)
      Depending on context, this could be a listen port or the client-side of a socket.
      Endpoint.Builder service_name​(java.lang.String service_name)
      Lower-case label of this node in the service graph, such as "favstar".
      • Methods inherited from class com.squareup.wire.Message.Builder

        addUnknownField, addUnknownFields, buildUnknownFields, clearUnknownFields, getUnknownFieldsBuffer$wire_runtime, getUnknownFieldsByteString$wire_runtime, getUnknownFieldsWriter$wire_runtime, setUnknownFieldsBuffer$wire_runtime, setUnknownFieldsByteString$wire_runtime, setUnknownFieldsWriter$wire_runtime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • service_name

        public java.lang.String service_name
      • ipv4

        public okio.ByteString ipv4
      • ipv6

        public okio.ByteString ipv6
      • port

        public java.lang.Integer port
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • service_name

        public Endpoint.Builder service_name​(java.lang.String service_name)
        Lower-case label of this node in the service graph, such as "favstar". Leave absent if unknown. This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
      • ipv4

        public Endpoint.Builder ipv4​(okio.ByteString ipv4)
        4 byte representation of the primary IPv4 address associated with this connection. Absent if unknown.
      • ipv6

        public Endpoint.Builder ipv6​(okio.ByteString ipv6)
        16 byte representation of the primary IPv6 address associated with this connection. Absent if unknown. Prefer using the ipv4 field for mapped addresses.
      • port

        public Endpoint.Builder port​(java.lang.Integer port)
        Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.