public interface CommandMethod
Method interface
with specific information that is necessary to construct RedisCommand for the method.| Modifier and Type | Method and Description |
|---|---|
ResolvableType |
getActualReturnType() |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Lookup a method annotation.
|
Method |
getMethod() |
String |
getName() |
Parameters<? extends Parameter> |
getParameters() |
ResolvableType |
getReturnType() |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClass) |
boolean |
isBatchExecution() |
boolean |
isFutureExecution() |
boolean |
isReactiveExecution() |
Parameters<? extends Parameter> getParameters()
Parameters.ResolvableType getReturnType()
Method return TypeInformation.ResolvableType getActualReturnType()
Method return TypeInformation after unwrapping.<A extends Annotation> A getAnnotation(Class<A> annotationClass)
annotationClass - the annotation class.null if not found.boolean hasAnnotation(Class<? extends Annotation> annotationClass)
annotationClass - the annotation class.true if the method is annotated with annotationClass.String getName()
boolean isFutureExecution()
true if the method uses asynchronous execution declaring Future as result type.boolean isReactiveExecution()
true if the method uses reactive execution declaring Publisher as result
type.boolean isBatchExecution()
true if the method defines a CommandBatching argument.Copyright © 2021 lettuce.io. All rights reserved.