Uses of Class
io.grpc.Deadline
-
Packages that use Deadline Package Description io.grpc The gRPC core public API.io.grpc.stub API for the Stub layer. -
-
Uses of Deadline in io.grpc
Methods in io.grpc that return Deadline Modifier and Type Method Description static Deadline
Deadline. after(long duration, TimeUnit units)
Create a deadline that will expire at the specified offset based on thesystem ticker
.static Deadline
Deadline. after(long duration, TimeUnit units, Deadline.Ticker ticker)
Create a deadline that will expire at the specified offset based on the givenDeadline.Ticker
.Deadline
CallOptions. getDeadline()
Returns the deadline ornull
if the deadline is not set.Deadline
Context.CancellableContext. getDeadline()
Deadline
Context. getDeadline()
A context may have an associatedDeadline
at which it will be automatically cancelled.Deadline
Deadline. minimum(Deadline other)
Return the minimum deadline ofthis
or an other deadline.Deadline
Deadline. offset(long offset, TimeUnit units)
Create a new deadline that is offset fromthis
.Methods in io.grpc with parameters of type Deadline Modifier and Type Method Description int
Deadline. compareTo(Deadline that)
boolean
Deadline. isBefore(Deadline other)
Isthis
deadline before another.Deadline
Deadline. minimum(Deadline other)
Return the minimum deadline ofthis
or an other deadline.CallOptions
CallOptions. withDeadline(Deadline deadline)
Returns a newCallOptions
with the given absolute deadline.Context.CancellableContext
Context. withDeadline(Deadline newDeadline, ScheduledExecutorService scheduler)
Create a new context which will cancel itself at the givenDeadline
. -
Uses of Deadline in io.grpc.stub
Methods in io.grpc.stub with parameters of type Deadline Modifier and Type Method Description S
AbstractStub. withDeadline(Deadline deadline)
Returns a new stub with an absolute deadline.
-