MCPcopy Index your code
hub / github.com/grpc/grpc-java / add

Method add

api/src/main/java/io/grpc/InternalChannelz.java:243–246  ·  view source on GitHub ↗
(Map<Long, T> map, T object)

Source from the content-addressed store, hash-verified

241 }
242
243 private static <T extends InternalInstrumented<?>> void add(Map<Long, T> map, T object) {
244 T prev = map.put(object.getLogId().getId(), object);
245 assert prev == null;
246 }
247
248 private static <T extends InternalInstrumented<?>> void remove(Map<Long, T> map, T object) {
249 T prev = map.remove(id(object));

Callers 6

addServerMethod · 0.95
addSubchannelMethod · 0.95
addRootChannelMethod · 0.95
addClientSocketMethod · 0.95
addListenSocketMethod · 0.95
addServerSocketMethod · 0.95

Calls 3

putMethod · 0.65
getLogIdMethod · 0.65
getIdMethod · 0.45

Tested by

no test coverage detected