Module lettuce.core
Package io.lettuce.core.protocol
Redis protocol layer abstraction.
-
Interface Summary Interface Description CompleteableCommand<T> Extension to commands that provide registration of command completion callbacks.ConnectionFacade Represents a stateful connection facade.ConnectionInitializer Initialize a connection to prepare it for usage.DecodeBufferPolicy Strategy defining the approach to discard bytes from the response aggregationbufferinCommandHandler.decode(ChannelHandlerContext ctx, ByteBuf buffer)to reclaim memory after various response decoding phases.DecoratedCommand<K,V,T> A decorated command allowing access to the underlyingDecoratedCommand.getDelegate().DemandAware Interface for demand-aware components.DemandAware.Sink A demand-awareDemandAware.Sinkthat accepts data.DemandAware.Source ADemandAware.Sourceprovides data to aDemandAwareand can be notified to produce more input for the command.Endpoint Wraps a statefulEndpointthat abstracts the underlying channel.ProtocolKeyword Interface for protocol keywords providing an encoded representation.PushHandler A handler object that provides access toPushListener.ReconnectionListener Listener for reconnection events.RedisCommand<K,V,T> A redis command that holds an output, arguments and a state, whether it is completed or not. -
Class Summary Class Description AsyncCommand<K,V,T> An asynchronous redis command and its result.BaseRedisCommandBuilder<K,V> Command<K,V,T> CommandArgs<K,V> Redis command arguments.CommandArgsAccessor Accessor for first encoded key, first string and firstintegerargument ofCommandArgs.CommandEncoder A nettyChannelHandlerresponsible for encoding commands.CommandExpiryWriter Extension toRedisChannelWriterthat expires commands.CommandHandler A nettyChannelHandlerresponsible for writing redis commands and reading responses from the server.CommandWrapper<K,V,T> Wrapper for a command.ConnectionWatchdog A nettyChannelHandlerresponsible for monitoring the channel and reconnecting when the connection is lost.DecodeBufferPolicies Utility class to construct commonly usedDecodeBufferPolicyobjects.DefaultEndpoint DefaultEndpointimplementation.RedisHandshakeHandler Handler to initialize a Redis Connection using aConnectionInitializer.RedisStateMachine State machine that decodes redis server responses encoded according to the Unified Request Protocol (RESP).TracedCommand<K,V,T> Redis command that is aware of an associatedTraceContext.TransactionalCommand<K,V,T> A wrapper for commands within a MULTI transaction. -
Enum Summary Enum Description CommandHandler.LifecycleState CommandKeyword Keyword modifiers for redis commands.CommandType Redis commands.ProtocolVersion Versions of the native protocol supported by the driver. -
Exception Summary Exception Description RedisProtocolException Exception thrown on Redis protocol failures.