- All Known Implementing Classes:
CodecAwareOutputFactoryResolver,OutputRegistryCommandOutputFactoryResolver
public interface CommandOutputFactoryResolver
Strategy interface to resolve a
CommandOutputFactory based on a OutputSelector. Resolution of
CommandOutputFactory is based on CommandMethod result types and can be influenced
whether the result type is a key or value result type. Additional type variables (based on the used
RedisCodec are hints to improve output resolution.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
OutputSelector
-
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.
-
Method Details
-
resolveCommandOutput
Resolve a regularCommandOutputFactorythat produces theCommandOutputresult component type.- Parameters:
outputSelector- must not benull.- Returns:
- the
CommandOutputFactoryif resolved,nullotherwise.
-
resolveStreamingCommandOutput
Resolve a streamingCommandOutputFactorythat produces theStreamingOutputresult component type.- Parameters:
outputSelector- must not benull.- Returns:
- the
CommandOutputFactorythat implementsStreamingOutputif resolved,nullotherwise.
-