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

Method withDeadlineAfter

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

Returns a new CallOptions with a deadline that is after the given duration from now.

(long duration, TimeUnit unit)

Source from the content-addressed store, hash-verified

175 * now.
176 */
177 public CallOptions withDeadlineAfter(long duration, TimeUnit unit) {
178 return withDeadline(Deadline.after(duration, unit));
179 }
180
181 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/11657")
182 public CallOptions withDeadlineAfter(Duration duration) {

Callers 1

callOptionsMethod · 0.95

Calls 3

withDeadlineMethod · 0.95
afterMethod · 0.95
convertToNanosMethod · 0.80

Tested by 1

callOptionsMethod · 0.76