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

Method close

api/src/main/java/io/grpc/ServerCall.java:177–177  ·  view source on GitHub ↗

Close the call with the provided status. No further sending or receiving will occur. If Status#isOk is false, then the call is said to have failed. If no errors or cancellations are known to have occurred, then a Listener#onComplete notification should be expected, indepe

(Status status, Metadata trailers)

Source from the content-addressed store, hash-verified

175 * @throws IllegalStateException if call is already {@code close}d
176 */
177 public abstract void close(Status status, Metadata trailers);
178
179 /**
180 * Returns {@code true} when the call is cancelled and the server is encouraged to abort

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected