
io.lettuce.core.dynamic.RedisCommandsMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.dynamic;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Collection;
/**
* Interface exposing Redis command interface metadata.
*
* @author Mark Paluch
* @since 5.0
*/
interface RedisCommandsMetadata {
Collection getMethods();
/**
* Returns the Redis Commands interface.
*
* @return
*/
Class> getCommandsInterface();
/**
* Lookup an interface annotation.
*
* @param annotationClass the annotation class.
* @return the annotation object or {@code null} if not found.
*/
A getAnnotation(Class annotationClass);
/**
* @param annotationClass the annotation class.
* @return {@code true} if the interface is annotated with {@code annotationClass}.
*/
boolean hasAnnotation(Class extends Annotation> annotationClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy