Package io.lettuce.core.dynamic.output
Class CodecAwareOutputFactoryResolver
- java.lang.Object
-
- io.lettuce.core.dynamic.output.CodecAwareOutputFactoryResolver
-
- All Implemented Interfaces:
CommandOutputFactoryResolver
public class CodecAwareOutputFactoryResolver extends Object implements CommandOutputFactoryResolver
RedisCodec
-aware implementation ofCommandOutputFactoryResolver
. This implementation inspectsRedisCodec
regarding its type and enhancesOutputSelector
forCommandOutputFactory
resolution.- Since:
- 5.0
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate, RedisCodec<?,?> redisCodec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandOutputFactory
resolveCommandOutput(OutputSelector outputSelector)
Resolve a regularCommandOutputFactory
that produces theCommandOutput
result component type.CommandOutputFactory
resolveStreamingCommandOutput(OutputSelector outputSelector)
Resolve a streamingCommandOutputFactory
that produces theStreamingOutput
result component type.
-
-
-
Constructor Detail
-
CodecAwareOutputFactoryResolver
public CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate, RedisCodec<?,?> redisCodec)
- Parameters:
delegate
- must not benull
.redisCodec
- must not benull
.
-
-
Method Detail
-
resolveCommandOutput
public CommandOutputFactory resolveCommandOutput(OutputSelector outputSelector)
Description copied from interface:CommandOutputFactoryResolver
Resolve a regularCommandOutputFactory
that produces theCommandOutput
result component type.- Specified by:
resolveCommandOutput
in interfaceCommandOutputFactoryResolver
- Parameters:
outputSelector
- must not benull
.- Returns:
- the
CommandOutputFactory
if resolved,null
otherwise.
-
resolveStreamingCommandOutput
public CommandOutputFactory resolveStreamingCommandOutput(OutputSelector outputSelector)
Description copied from interface:CommandOutputFactoryResolver
Resolve a streamingCommandOutputFactory
that produces theStreamingOutput
result component type.- Specified by:
resolveStreamingCommandOutput
in interfaceCommandOutputFactoryResolver
- Parameters:
outputSelector
- must not benull
.- Returns:
- the
CommandOutputFactory
that implementsStreamingOutput
if resolved,null
otherwise.
-
-