Skip navigation links
A C D F G I K M O R T W 

A

addListener(Context.CancellationListener, Executor) - Method in class io.grpc.Context
Add a listener that will be notified when the context becomes cancelled.
after(long, TimeUnit) - Static method in class io.grpc.Deadline
Create a deadline that will expire at the specified offset from the current system clock.
attach() - Method in class io.grpc.Context
Attach this context to the thread and make it Context.current(), the previously current context is returned.
attach() - Method in class io.grpc.Context.CancellableContext
 

C

call(Callable<V>) - Method in class io.grpc.Context
Immediately call a Callable with this context as the Context.current() context.
cancel(Throwable) - Method in class io.grpc.Context.CancellableContext
Cancel this context and optionally provide a cause (can be null) for the cancellation.
cancellationCause() - Method in class io.grpc.Context.CancellableContext
 
cancellationCause() - Method in class io.grpc.Context
If a context Context.isCancelled() then return the cause of the cancellation or null if context was cancelled without a cause.
cancelled(Context) - Method in interface io.grpc.Context.CancellationListener
 
compareTo(Deadline) - Method in class io.grpc.Deadline
 
Context - Class in io.grpc
A context propagation mechanism which can carry scoped-values across API boundaries and between threads.
Context.CancellableContext - Class in io.grpc
A context which inherits cancellation from its parent but which can also be independently cancelled and which will propagate cancellation to its descendants.
Context.CancellationListener - Interface in io.grpc
A listener notified on context cancellation.
Context.Key<T> - Class in io.grpc
Key for indexing values stored in a context.
current() - Static method in class io.grpc.Context
Return the context associated with the current thread, will never return null as the Context.ROOT context is implicitly associated with all threads.
currentContextExecutor(Executor) - Static method in class io.grpc.Context
Create an executor that propagates the Context.current() context when Executor.execute(java.lang.Runnable) is called as the Context.current() context of the Runnable scheduled.

D

Deadline - Class in io.grpc
An absolute deadline in system time.
detach(Context) - Method in class io.grpc.Context.CancellableContext
 
detach(Context) - Method in class io.grpc.Context
Detach the current context from the thread and attach the provided replacement.
detachAndCancel(Context, Throwable) - Method in class io.grpc.Context.CancellableContext
Cancel this context and detach it as the current context from the thread.

F

fixedContextExecutor(Executor) - Method in class io.grpc.Context
Wrap an Executor so that it always executes with this context as the Context.current() context.
fork() - Method in class io.grpc.Context
Create a new context which propagates the values of this context but does not cascade its cancellation.

G

get() - Method in class io.grpc.Context.Key
Get the value from the Context.current() context for this key.
get(Context) - Method in class io.grpc.Context.Key
Get the value from the specified context for this key.
getDeadline() - Method in class io.grpc.Context
A context may have an associated Deadline at which it will be automatically cancelled.

I

io.grpc - package io.grpc
 
isBefore(Deadline) - Method in class io.grpc.Deadline
Is this deadline before another.
isCancelled() - Method in class io.grpc.Context.CancellableContext
 
isCancelled() - Method in class io.grpc.Context
Is this context cancelled.
isCurrent() - Method in class io.grpc.Context.CancellableContext
 
isExpired() - Method in class io.grpc.Deadline
Has this deadline expired

K

key(String) - Static method in class io.grpc.Context
Create a Context.Key with the given debug name.
keyWithDefault(String, T) - Static method in class io.grpc.Context
Create a Context.Key with the given debug name and default value.

M

minimum(Deadline) - Method in class io.grpc.Deadline
Return the minimum deadline of this or an other deadline.

O

offset(long, TimeUnit) - Method in class io.grpc.Deadline
Create a new deadline that is offset from this.

R

removeListener(Context.CancellationListener) - Method in class io.grpc.Context
ROOT - Static variable in class io.grpc.Context
The logical root context which is Context.current() if no other context is bound.
run(Runnable) - Method in class io.grpc.Context
Immediately run a Runnable with this context as the Context.current() context.
runOnExpiration(Runnable, ScheduledExecutorService) - Method in class io.grpc.Deadline
Schedule a task to be run when the deadline expires.

T

timeRemaining(TimeUnit) - Method in class io.grpc.Deadline
How much time is remaining in the specified time unit.
toString() - Method in class io.grpc.Context.Key
 
toString() - Method in class io.grpc.Deadline
 

W

withCancellation() - Method in class io.grpc.Context
Create a new context which is independently cancellable and also cascades cancellation from its parent.
withDeadline(Deadline, ScheduledExecutorService) - Method in class io.grpc.Context
Create a new context which will cancel itself at the given Deadline.
withDeadlineAfter(long, TimeUnit, ScheduledExecutorService) - Method in class io.grpc.Context
Create a new context which will cancel itself after the given duration from now.
withValue(Context.Key<V>, V) - Method in class io.grpc.Context
Create a new context with the given key value set.
withValues(Context.Key<V1>, V1, Context.Key<V2>, V2) - Method in class io.grpc.Context
Create a new context with the given key value set.
withValues(Context.Key<V1>, V1, Context.Key<V2>, V2, Context.Key<V3>, V3) - Method in class io.grpc.Context
Create a new context with the given key value set.
wrap(Runnable) - Method in class io.grpc.Context
Wrap a Runnable so that it executes with this context as the Context.current() context.
wrap(Callable<C>) - Method in class io.grpc.Context
Wrap a Callable so that it executes with this context as the Context.current() context.
A C D F G I K M O R T W 
Skip navigation links