public class AnnotationRedisCodecResolver extends Object implements RedisCodecResolver
RedisCodecResolver
. Considers @Key
and @Value
annotations of method parameters to
determine a RedisCodec
that is able to handle all involved types.Modifier and Type | Class and Description |
---|---|
protected static class |
AnnotationRedisCodecResolver.ParameterWrappers
Parameter wrapper support for types that encapsulate one or more parameter values.
|
Constructor and Description |
---|
AnnotationRedisCodecResolver(List<RedisCodec<?,?>> codecs)
|
Modifier and Type | Method and Description |
---|---|
RedisCodec<?,?> |
resolve(CommandMethod commandMethod)
Resolve a
RedisCodec for the given CommandMethod . |
public AnnotationRedisCodecResolver(List<RedisCodec<?,?>> codecs)
codecs
- must not be null
.public RedisCodec<?,?> resolve(CommandMethod commandMethod)
RedisCodecResolver
RedisCodec
for the given CommandMethod
.resolve
in interface RedisCodecResolver
commandMethod
- must not be null
.RedisCodec
or null
if not resolvable.Copyright © 2023 lettuce.io. All rights reserved.