Interface RequestId


  • public interface RequestId
    An identifier of a Request-Response pair. Note that this identifier does not guarantee uniqueness. A different Request may have the same RequestId, although its chance would be fairly low.
    • Method Summary

      Modifier and Type Method Description
      static RequestId of​(long value)
      Returns a RequestId created from the specified 64-bit integer.
      static RequestId random()
      Returns a RequestId created from a 64-bit random integer.
      default String shortText()
      Returns the human-friendly short textual representation of this ID.
      String text()
      Returns the full textual representation of this ID.
    • Method Detail

      • random

        static RequestId random()
        Returns a RequestId created from a 64-bit random integer.
      • of

        static RequestId of​(long value)
        Returns a RequestId created from the specified 64-bit integer.
      • text

        String text()
        Returns the full textual representation of this ID.
      • shortText

        default String shortText()
        Returns the human-friendly short textual representation of this ID.