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

io.lettuce.core.protocol.ActivationCommand 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.protocol;

/**
 * Command wrapper to identify activation commands.
 *
 * @author Mark Paluch
 */
class ActivationCommand extends CommandWrapper {

    public ActivationCommand(RedisCommand command) {
        super(command);
    }

    public static boolean isActivationCommand(RedisCommand command) {

        if (command instanceof ActivationCommand) {
            return true;
        }

        while (command instanceof CommandWrapper) {
            command = ((CommandWrapper) command).getDelegate();

            if (command instanceof ActivationCommand) {
                return true;
            }
        }

        return false;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy