Package io.grpc

Class InternalLogId

java.lang.Object
io.grpc.InternalLogId

@Internal public final class InternalLogId extends Object
An internal class. Do not use.

An object that has an ID that is unique within the JVM, primarily for debug logging.

  • Method Details

    • allocate

      public static InternalLogId allocate(Class<?> type, @Nullable String details)
      Creates a log id.
      Parameters:
      type - the "Type" to be used when logging this id. The short name of this class will be used, or else a default if the class is anonymous.
      details - a short, human readable string that describes the object the id is attached to. Typically this will be an address or target.
    • allocate

      public static InternalLogId allocate(String typeName, @Nullable String details)
      Creates a log id.
      Parameters:
      typeName - the "Type" to be used when logging this id.
      details - a short, human readable string that describes the object the id is attached to. Typically this will be an address or target.
    • getTypeName

      public String getTypeName()
    • getDetails

      @Nullable public String getDetails()
    • getId

      public long getId()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • shortName

      public String shortName()