Interface PingBeacon.Builder

  • Method Details

    • udpEndpoint

      PingBeacon.Builder udpEndpoint(UDPEndpoint udpEndpoint)

      The domain name and port of the UDP ping beacon. Your game client can send UDP messages to this endpoint and receive responses to measure network latency.

      Parameters:
      udpEndpoint - The domain name and port of the UDP ping beacon. Your game client can send UDP messages to this endpoint and receive responses to measure network latency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • udpEndpoint

      default PingBeacon.Builder udpEndpoint(Consumer<UDPEndpoint.Builder> udpEndpoint)

      The domain name and port of the UDP ping beacon. Your game client can send UDP messages to this endpoint and receive responses to measure network latency.

      This is a convenience method that creates an instance of the UDPEndpoint.Builder avoiding the need to create one manually via UDPEndpoint.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to udpEndpoint(UDPEndpoint).

      Parameters:
      udpEndpoint - a consumer that will call methods on UDPEndpoint.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: