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
    Returns a RequestId created from a 64-bit random integer.
    default String
    Returns the human-friendly short textual representation of this ID.
    Returns the full textual representation of this ID.
  • Method Details

    • 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.