Package io.grpc.internal
Class ContextRunnable
- java.lang.Object
-
- io.grpc.internal.ContextRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
DelayedClientCall.CloseListenerRunnable
abstract class ContextRunnable extends java.lang.Object implements java.lang.Runnable
Utility base implementation ofRunnable
that performs the same function asContext.wrap(Runnable)
without requiring the construction of an additional object.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContextRunnable(Context context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
run()
abstract void
runInContext()
-