Class Endpoint.Builder

    • 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​(Integer port)
      Depending on context, this could be a listen port or the client-side of a socket.
      Endpoint.Builder service_name​(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
    • Field Detail

      • service_name

        public String service_name
      • ipv4

        public okio.ByteString ipv4
      • ipv6

        public okio.ByteString ipv6
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • service_name

        public Endpoint.Builder service_name​(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​(Integer port)
        Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.