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