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
ContextHandleimplementation using {@see io.grpc.Context}.
-
-
Field Summary
Fields Modifier and Type Field Description private io.grpc.Contextcontext
-
Constructor Summary
Constructors Constructor Description ContextHandleImpl(io.grpc.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandleattach()voiddetach(ContextHandle contextHandle)(package private) io.grpc.ContextgetContext()
-
-
-
Method Detail
-
getContext
io.grpc.Context getContext()
-
attach
public ContextHandle attach()
- Specified by:
attachin interfaceContextHandle
-
detach
public void detach(ContextHandle contextHandle)
- Specified by:
detachin interfaceContextHandle
-
-