A C D E F G H I K M N O R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
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 based on the
system ticker. - after(long, TimeUnit, Deadline.Ticker) - Static method in class io.grpc.Deadline
-
Create a deadline that will expire at the specified offset based on the given
Deadline.Ticker. - attach() - Method in class io.grpc.Context
-
Attach this context, thus enter a new scope within which this context is
Context.current(). - attach() - Method in class io.grpc.Context.CancellableContext
- attach(Context) - Method in class io.grpc.Context.Storage
-
Deprecated.This is an old API that is no longer used.
C
- call(Callable<V>) - Method in class io.grpc.Context
-
Immediately call a
Callablewith this context as theContext.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 ornullif context was cancelled without a cause. - cancelled(Context) - Method in interface io.grpc.Context.CancellationListener
- close() - Method in class io.grpc.Context.CancellableContext
-
Cleans up this object by calling
cancel(null). - 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.
- Context.Storage - Class in io.grpc
-
Defines the mechanisms for attaching and detaching the "current" context.
- current() - Static method in class io.grpc.Context
-
Return the context associated with the current scope, will never return
null. - current() - Method in class io.grpc.Context.Storage
-
Implements
Context.current(). - currentContextExecutor(Executor) - Static method in class io.grpc.Context
-
Create an executor that propagates the
Context.current()context whenExecutor.execute(java.lang.Runnable)is called as theContext.current()context of theRunnablescheduled.
D
- Deadline - Class in io.grpc
-
An absolute point in time, generally for tracking when a task should be completed.
- Deadline.Ticker - Class in io.grpc
-
Time source representing nanoseconds since fixed but arbitrary point in time.
- detach(Context) - Method in class io.grpc.Context.CancellableContext
- detach(Context) - Method in class io.grpc.Context
-
Reverse an
attach(), restoring the previous context and exiting the current scope. - detach(Context, Context) - Method in class io.grpc.Context.Storage
-
Implements
Context.detach(io.grpc.Context) - detachAndCancel(Context, Throwable) - Method in class io.grpc.Context.CancellableContext
-
Cancel this context and detach it as the current context.
- doAttach(Context) - Method in class io.grpc.Context.Storage
-
Implements
Context.attach().
E
- equals(Object) - Method in class io.grpc.Deadline
F
- fixedContextExecutor(Executor) - Method in class io.grpc.Context
-
Wrap an
Executorso that it always executes with this context as theContext.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.CancellableContext
- getDeadline() - Method in class io.grpc.Context
-
A context may have an associated
Deadlineat which it will be automatically cancelled. - getSystemTicker() - Static method in class io.grpc.Deadline
-
Returns the ticker that's based on system clock.
H
- hashCode() - Method in class io.grpc.Deadline
I
- io.grpc - package io.grpc
- isBefore(Deadline) - Method in class io.grpc.Deadline
-
Is
thisdeadline 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
-
Deprecated.This method violates some GRPC class encapsulation and should not be used. If you must know whether a Context is the current context, check whether it is the same object returned by
Context.current(). - isExpired() - Method in class io.grpc.Deadline
-
Has this deadline expired
K
- key(String) - Static method in class io.grpc.Context
-
Create a
Context.Keywith the given debug name. - keyWithDefault(String, T) - Static method in class io.grpc.Context
-
Create a
Context.Keywith the given debug name and default value.
M
- minimum(Deadline) - Method in class io.grpc.Deadline
-
Return the minimum deadline of
thisor an other deadline.
N
- nanoTime() - Method in class io.grpc.Deadline.Ticker
-
Returns the number of nanoseconds since this source's epoch.
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
-
Remove a
Context.CancellationListener. - ROOT - Static variable in class io.grpc.Context
-
The logical root context which is the ultimate ancestor of all contexts.
- run(Runnable) - Method in class io.grpc.Context
-
Immediately run a
Runnablewith this context as theContext.current()context. - runOnExpiration(Runnable, ScheduledExecutorService) - Method in class io.grpc.Deadline
-
Schedule a task to be run when the deadline expires.
S
- Storage() - Constructor for class io.grpc.Context.Storage
T
- Ticker() - Constructor for class io.grpc.Deadline.Ticker
- 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
durationfrom 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.
- withValues(Context.Key<V1>, V1, Context.Key<V2>, V2, Context.Key<V3>, V3, Context.Key<V4>, V4) - 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
Runnableso that it executes with this context as theContext.current()context. - wrap(Callable<C>) - Method in class io.grpc.Context
-
Wrap a
Callableso that it executes with this context as theContext.current()context.
All Classes All Packages