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

io.lettuce.core.dynamic.ExecutableCommand 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.util.concurrent.ExecutionException;

/**
 * An executable command that can be executed calling {@link #execute(Object[])}.
 *
 * @author Mark Paluch
 * @since 5.0
 */
interface ExecutableCommand {

    /**
     * Executes the {@link ExecutableCommand} with the given parameters.
     *
     * @param parameters
     * @return
     */
    Object execute(Object[] parameters) throws ExecutionException, InterruptedException;

    /**
     * Returns the {@link CommandMethod}.
     *
     * @return
     */
    CommandMethod getCommandMethod();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy