Package io.grpc
Class InternalLogId
java.lang.Object
io.grpc.InternalLogId
An internal class. Do not use.
An object that has an ID that is unique within the JVM, primarily for debug logging.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InternalLogId
Creates a log id.static InternalLogId
Creates a log id.private static String
getClassName
(Class<?> type) long
getId()
(package private) static long
toString()
-
Field Details
-
idAlloc
-
typeName
-
details
-
id
private final long id
-
-
Constructor Details
-
InternalLogId
-
-
Method Details
-
allocate
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
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.
-
getNextId
static long getNextId() -
getTypeName
-
getDetails
-
getId
public long getId() -
toString
-
getClassName
-
shortName
-