| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| Modifier and Type | Method and Description |
|---|---|
Context.CancellableContext |
Context.withCancellation()
Create a new context which is independently cancellable and also cascades cancellation from
its parent.
|
Context.CancellableContext |
Context.withDeadline(Deadline newDeadline,
ScheduledExecutorService scheduler)
Create a new context which will cancel itself at the given
Deadline. |
Context.CancellableContext |
Context.withDeadlineAfter(long duration,
TimeUnit unit,
ScheduledExecutorService scheduler)
Create a new context which will cancel itself after the given
duration from now. |