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

Method withDeadline

stub/src/main/java/io/grpc/stub/AbstractStub.java:141–143  ·  view source on GitHub ↗

Returns a new stub with an absolute deadline. This is mostly used for propagating an existing deadline. #withDeadlineAfter is the recommended way of setting a new deadline, @since 1.0.0 @param deadline the deadline or null for unsetting the deadline.

(@Nullable Deadline deadline)

Source from the content-addressed store, hash-verified

139 * @param deadline the deadline or {@code null} for unsetting the deadline.
140 */
141 public final S withDeadline(@Nullable Deadline deadline) {
142 return build(channel, callOptions.withDeadline(deadline));
143 }
144
145 /**
146 * Returns a new stub with a deadline that is after the given {@code duration} from now.

Calls 1

buildMethod · 0.95