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

Method Context

api/src/context/java/io/grpc/Context.java:187–192  ·  view source on GitHub ↗

Construct a context that cannot be cancelled and will not cascade cancellation from its parent.

(Node<Key<?>, Object> keyValueEntries, int generation)

Source from the content-addressed store, hash-verified

185 * Construct a context that cannot be cancelled and will not cascade cancellation from its parent.
186 */
187 private Context(Node<Key<?>, Object> keyValueEntries, int generation) {
188 this.cancellableAncestor = null;
189 this.keyValueEntries = keyValueEntries;
190 this.generation = generation;
191 validateGeneration(generation);
192 }
193
194 /**
195 * Construct a context that cannot be cancelled but will cascade cancellation from its parent if

Callers

nothing calls this directly

Calls 2

validateGenerationMethod · 0.95
cancellableAncestorMethod · 0.95

Tested by

no test coverage detected