Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.stub |
API for the Stub layer.
|
Modifier and Type | Method and Description |
---|---|
static Deadline |
Deadline.after(long duration,
TimeUnit units)
Create a deadline that will expire at the specified offset based on the
system 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 given
Deadline.Ticker . |
Deadline |
CallOptions.getDeadline()
Returns the deadline or
null if the deadline is not set. |
Deadline |
Context.getDeadline()
A context may have an associated
Deadline at which it will be automatically cancelled. |
Deadline |
Context.CancellableContext.getDeadline() |
Deadline |
Deadline.minimum(Deadline other)
Return the minimum deadline of
this or an other deadline. |
Deadline |
Deadline.offset(long offset,
TimeUnit units)
Create a new deadline that is offset from
this . |
Modifier and Type | Method and Description |
---|---|
int |
Deadline.compareTo(Deadline that) |
boolean |
Deadline.isBefore(Deadline other)
Is
this deadline before another. |
Deadline |
Deadline.minimum(Deadline other)
Return the minimum deadline of
this or an other deadline. |
CallOptions |
CallOptions.withDeadline(Deadline deadline)
Returns a new
CallOptions with the given absolute deadline. |
Context.CancellableContext |
Context.withDeadline(Deadline newDeadline,
ScheduledExecutorService scheduler)
Create a new context which will cancel itself at the given
Deadline . |
Modifier and Type | Method and Description |
---|---|
S |
AbstractStub.withDeadline(Deadline deadline)
Returns a new stub with an absolute deadline.
|