All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.dynamic.RedisCommandsMetadata Maven / Gradle / Ivy

Go to download

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 annotationClass);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy