Package io.lettuce.core.cluster
Class ClusterReadOnlyCommands
- java.lang.Object
-
- io.lettuce.core.cluster.ClusterReadOnlyCommands
-
public class ClusterReadOnlyCommands extends Object
Contains all command names that are read-only commands.- Since:
- 6.2.5
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description ClusterReadOnlyCommands()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReadOnlyCommands.ReadOnlyPredicate
asPredicate()
Return aReadOnlyCommands.ReadOnlyPredicate
to test against the underlyingknown commands
.static Set<CommandType>
getReadOnlyCommands()
static boolean
isReadOnlyCommand(ProtocolKeyword protocolKeyword)
-
-
-
Method Detail
-
isReadOnlyCommand
public static boolean isReadOnlyCommand(ProtocolKeyword protocolKeyword)
- Parameters:
protocolKeyword
- must not benull
.- Returns:
true
ifProtocolKeyword
is a read-only command.
-
getReadOnlyCommands
public static Set<CommandType> getReadOnlyCommands()
-
asPredicate
public static ReadOnlyCommands.ReadOnlyPredicate asPredicate()
Return aReadOnlyCommands.ReadOnlyPredicate
to test against the underlyingknown commands
.- Returns:
- a
ReadOnlyCommands.ReadOnlyPredicate
to test against the underlyingknown commands
.
-
-