@FunctionalInterface public static interface ReadOnlyCommands.ReadOnlyPredicate
| Modifier and Type | Method and Description |
|---|---|
default ReadOnlyCommands.ReadOnlyPredicate |
and(ReadOnlyCommands.ReadOnlyPredicate other)
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
boolean |
isReadOnly(RedisCommand<?,?,?> command)
Evaluates this predicate on the given
RedisCommand. |
default ReadOnlyCommands.ReadOnlyPredicate |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default ReadOnlyCommands.ReadOnlyPredicate |
or(ReadOnlyCommands.ReadOnlyPredicate other)
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
boolean isReadOnly(RedisCommand<?,?,?> command)
RedisCommand.command - the input command.true if the input argument matches the predicate, otherwise falsedefault ReadOnlyCommands.ReadOnlyPredicate and(ReadOnlyCommands.ReadOnlyPredicate other)
false, then the other predicate is not
evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this
predicate throws an exception, the other predicate will not be evaluated.
other - a predicate that will be logically-ANDed with this predicate.other
predicate.IllegalArgumentException - if other is null.default ReadOnlyCommands.ReadOnlyPredicate negate()
default ReadOnlyCommands.ReadOnlyPredicate or(ReadOnlyCommands.ReadOnlyPredicate other)
true, then the other predicate is not
evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this
predicate throws an exception, the other predicate will not be evaluated.
other - a predicate that will be logically-ORed with this predicate.other
predicate.IllegalArgumentException - if other is null.Copyright © 2023 lettuce.io. All rights reserved.