public class DeclaredCommandMethod extends Object implements CommandMethod
Method interface
with specific information that is necessary to construct RedisCommand for the method.| Modifier and Type | Method and Description |
|---|---|
static CommandMethod |
create(Method method)
Create a new
DeclaredCommandMethod given a Method. |
boolean |
equals(Object o) |
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) |
int |
hashCode() |
boolean |
isBatchExecution() |
boolean |
isFutureExecution() |
boolean |
isReactiveExecution() |
String |
toString() |
public static CommandMethod create(Method method)
DeclaredCommandMethod given a Method.method - must not be null.public Parameters<? extends Parameter> getParameters()
getParameters in interface CommandMethodParameters.public Method getMethod()
getMethod in interface CommandMethodMethod.public ResolvableType getReturnType()
getReturnType in interface CommandMethodMethod return TypeInformation.public ResolvableType getActualReturnType()
getActualReturnType in interface CommandMethodMethod return TypeInformation after unwrapping.public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
getAnnotation in interface CommandMethodannotationClass - the annotation class.public boolean hasAnnotation(Class<? extends Annotation> annotationClass)
hasAnnotation in interface CommandMethodannotationClass - the annotation class.annotationClass.public String getName()
getName in interface CommandMethodpublic boolean isFutureExecution()
isFutureExecution in interface CommandMethodFuture as result type.public boolean isReactiveExecution()
isReactiveExecution in interface CommandMethodPublisher as result type.public boolean isBatchExecution()
isBatchExecution in interface CommandMethodCommandBatching argument.Copyright © 2019 lettuce.io. All rights reserved.