Package io.lettuce.core.dynamic.output
Interface CommandOutputFactoryResolver
-
- All Known Implementing Classes:
CodecAwareOutputFactoryResolver
,OutputRegistryCommandOutputFactoryResolver
public interface CommandOutputFactoryResolver
Strategy interface to resolve aCommandOutputFactory
based on aOutputSelector
. Resolution ofCommandOutputFactory
is based onCommandMethod
result types and can be influenced whether the result type is a key or value result type. Additional type variables (based on the usedRedisCodec
are hints to improve output resolution.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
OutputSelector
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
resolveCommandOutput
CommandOutputFactory resolveCommandOutput(OutputSelector outputSelector)
Resolve a regularCommandOutputFactory
that produces theCommandOutput
result component type.- Parameters:
outputSelector
- must not benull
.- Returns:
- the
CommandOutputFactory
if resolved,null
otherwise.
-
resolveStreamingCommandOutput
CommandOutputFactory resolveStreamingCommandOutput(OutputSelector outputSelector)
Resolve a streamingCommandOutputFactory
that produces theStreamingOutput
result component type.- Parameters:
outputSelector
- must not benull
.- Returns:
- the
CommandOutputFactory
that implementsStreamingOutput
if resolved,null
otherwise.
-
-