MCPcopy Create free account
hub / github.com/grpc/grpc-java / allocate

Method allocate

api/src/main/java/io/grpc/InternalLogId.java:43–45  ·  view source on GitHub ↗

Creates a log id. @param 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. @param details a short, human readable string that describes the object the id is attached to. Typically this will be an addres

(Class<?> type, @Nullable String details)

Source from the content-addressed store, hash-verified

41 * Typically this will be an address or target.
42 */
43 public static InternalLogId allocate(Class<?> type, @Nullable String details) {
44 return allocate(getClassName(type), details);
45 }
46
47 /**
48 * Creates a log id.

Calls 2

getClassNameMethod · 0.95
getNextIdMethod · 0.95