java.lang.Object
io.lettuce.core.protocol.CommandWrapper<K,V,T>
io.lettuce.core.protocol.TracedCommand<K,V,T>
- All Implemented Interfaces:
CompleteableCommand<T>,DecoratedCommand<K,V,T>,RedisCommand<K,V,T>,TraceContextProvider
public class TracedCommand<K,V,T> extends CommandWrapper<K,V,T> implements TraceContextProvider
Redis command that is aware of an associated
TraceContext.- Since:
- 5.1
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from class io.lettuce.core.protocol.CommandWrapper
command -
Constructor Summary
Constructors Constructor Description TracedCommand(RedisCommand<K,V,T> command, TraceContext traceContext) -
Method Summary
Modifier and Type Method Description voidencode(ByteBuf buf)Encode the command.Tracer.SpangetSpan()TraceContextgetTraceContext()voidsetSpan(Tracer.Span span)Methods inherited from class io.lettuce.core.protocol.CommandWrapper
cancel, complete, completeExceptionally, doOnComplete, doOnError, equals, getArgs, getDelegate, getOutput, getType, hashCode, isCancelled, isDone, onComplete, onComplete, setOutput, toString, unwrap, unwrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.lettuce.core.tracing.TraceContextProvider
getTraceContextLater
-
Constructor Details
-
TracedCommand
-
-
Method Details
-
getTraceContext
- Specified by:
getTraceContextin interfaceTraceContextProvider- Returns:
- the
TraceContext.
-
getSpan
-
setSpan
-
encode
Description copied from interface:RedisCommandEncode the command.- Specified by:
encodein interfaceRedisCommand<K,V,T>- Overrides:
encodein classCommandWrapper<K,V,T>- Parameters:
buf- byte buffer to operate on.
-