java.lang.Object
io.lettuce.core.dynamic.output.CodecAwareOutputFactoryResolver
- All Implemented Interfaces:
CommandOutputFactoryResolver
public class CodecAwareOutputFactoryResolver extends Object implements CommandOutputFactoryResolver
RedisCodec-aware implementation of CommandOutputFactoryResolver. This implementation inspects
RedisCodec regarding its type and enhances OutputSelector for CommandOutputFactory resolution.- Since:
- 5.0
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate, RedisCodec<?,?> redisCodec) -
Method Summary
Modifier and Type Method Description CommandOutputFactoryresolveCommandOutput(OutputSelector outputSelector)Resolve a regularCommandOutputFactorythat produces theCommandOutputresult component type.CommandOutputFactoryresolveStreamingCommandOutput(OutputSelector outputSelector)Resolve a streamingCommandOutputFactorythat produces theStreamingOutputresult component type.
-
Constructor Details
-
CodecAwareOutputFactoryResolver
public CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate, RedisCodec<?,?> redisCodec)- Parameters:
delegate- must not benull.redisCodec- must not benull.
-
-
Method Details
-
resolveCommandOutput
Description copied from interface:CommandOutputFactoryResolverResolve a regularCommandOutputFactorythat produces theCommandOutputresult component type.- Specified by:
resolveCommandOutputin interfaceCommandOutputFactoryResolver- Parameters:
outputSelector- must not benull.- Returns:
- the
CommandOutputFactoryif resolved,nullotherwise.
-
resolveStreamingCommandOutput
Description copied from interface:CommandOutputFactoryResolverResolve a streamingCommandOutputFactorythat produces theStreamingOutputresult component type.- Specified by:
resolveStreamingCommandOutputin interfaceCommandOutputFactoryResolver- Parameters:
outputSelector- must not benull.- Returns:
- the
CommandOutputFactorythat implementsStreamingOutputif resolved,nullotherwise.
-