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.| Constructor and Description |
|---|
CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate,
RedisCodec<?,?> redisCodec)
|
| Modifier and Type | Method and Description |
|---|---|
CommandOutputFactory |
resolveCommandOutput(OutputSelector outputSelector)
Resolve a regular
CommandOutputFactory that produces the CommandOutput
result component type. |
CommandOutputFactory |
resolveStreamingCommandOutput(OutputSelector outputSelector)
Resolve a streaming
CommandOutputFactory that produces the StreamingOutput
result component type. |
public CodecAwareOutputFactoryResolver(CommandOutputFactoryResolver delegate, RedisCodec<?,?> redisCodec)
delegate - must not be null.redisCodec - must not be null.public CommandOutputFactory resolveCommandOutput(OutputSelector outputSelector)
CommandOutputFactoryResolverCommandOutputFactory that produces the CommandOutput
result component type.resolveCommandOutput in interface CommandOutputFactoryResolveroutputSelector - must not be null.CommandOutputFactory if resolved, null otherwise.public CommandOutputFactory resolveStreamingCommandOutput(OutputSelector outputSelector)
CommandOutputFactoryResolverCommandOutputFactory that produces the StreamingOutput
result component type.resolveStreamingCommandOutput in interface CommandOutputFactoryResolveroutputSelector - must not be null.CommandOutputFactory that implements StreamingOutput if
resolved, null otherwise.Copyright © 2019 lettuce.io. All rights reserved.