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

Method onMessage

api/src/test/java/io/grpc/ContextsTest.java:60–64  ·  view source on GitHub ↗
(Object messageIn)

Source from the content-addressed store, hash-verified

58 final List<Integer> methodCalls = new ArrayList<>();
59 final ServerCall.Listener<Object> listener = new ServerCall.Listener<Object>() {
60 @Override public void onMessage(Object messageIn) {
61 assertSame(message, messageIn);
62 assertSame(uniqueContext, Context.current());
63 methodCalls.add(1);
64 }
65
66 @Override public void onHalfClose() {
67 assertSame(uniqueContext, Context.current());

Callers

nothing calls this directly

Calls 2

currentMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected