Package io.opencensus.trace.unsafe
Class ContextHandleImpl
- java.lang.Object
-
- io.opencensus.trace.unsafe.ContextHandleImpl
-
- All Implemented Interfaces:
ContextHandle
class ContextHandleImpl extends java.lang.Object implements ContextHandle
ContextHandle
implementation using {@see io.grpc.Context}.
-
-
Field Summary
Fields Modifier and Type Field Description private io.grpc.Context
context
-
Constructor Summary
Constructors Constructor Description ContextHandleImpl(io.grpc.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandle
attach()
void
detach(ContextHandle contextHandle)
(package private) io.grpc.Context
getContext()
-
-
-
Method Detail
-
getContext
io.grpc.Context getContext()
-
attach
public ContextHandle attach()
- Specified by:
attach
in interfaceContextHandle
-
detach
public void detach(ContextHandle contextHandle)
- Specified by:
detach
in interfaceContextHandle
-
-