Package org.infinispan.client.hotrod
Enum Class Flag
- All Implemented Interfaces:
Serializable
,Comparable<Flag>
,Constable
,org.infinispan.api.common.Flag
Defines all the flags available in the Hot Rod client that can influence the behavior of operations.
Available flags:
FORCE_RETURN_VALUE
- By default, previously existing values forMap
operations are not returned. E.g.BasicCache.put(Object, Object)
does not return the previous value associated with the key. By applying this flag, this default behavior is overridden for the scope of a single invocation, and the previous existing value is returned.DEFAULT_LIFESPAN
This flag can either be used as a request flag during a put operation to mean that the default server lifespan should be applied or as a response flag meaning that the return entry has a default lifespan valueDEFAULT_MAXIDLE
This flag can either be used as a request flag during a put operation to mean that the default server maxIdle should be applied or as a response flag meaning that the return entry has a default maxIdle valueSKIP_CACHE_LOAD
Skips loading an entry from any configuredCacheLoader
s.SKIP_INDEXING
Used by the Query module only, it will prevent the indexes to be updated as a result of the current operations.SKIP_LISTENER_NOTIFICATION
Used when an operation wants to skip notifications to the registered listeners
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis flag can either be used as a request flag during a put operation to mean that the default server lifespan should be applied or as a response flag meaning that the return entry has a default lifespan valueThis flag can either be used as a request flag during a put operation to mean that the default server maxIdle should be applied or as a response flag meaning that the return entry has a default maxIdle valueBy default, previously existing values forMap
operations are not returned.Skips loading an entry from any configuredCacheLoader
s.Used by the Query module only, it will prevent the indexes to be updated as a result of the current operations.It will skip client listeners to be notified. -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.api.common.Flags
<?, ?> add
(org.infinispan.api.common.Flags<?, ?> flags) int
static Flag
Returns the enum constant of this class with the specified name.static Flag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORCE_RETURN_VALUE
By default, previously existing values forMap
operations are not returned. E.g.BasicCache.put(Object, Object)
does not return the previous value associated with the key. By applying this flag, this default behavior is overridden for the scope of a single invocation, and the previous existing value is returned. -
DEFAULT_LIFESPAN
This flag can either be used as a request flag during a put operation to mean that the default server lifespan should be applied or as a response flag meaning that the return entry has a default lifespan value -
DEFAULT_MAXIDLE
This flag can either be used as a request flag during a put operation to mean that the default server maxIdle should be applied or as a response flag meaning that the return entry has a default maxIdle value -
SKIP_CACHE_LOAD
Skips loading an entry from any configuredCacheLoader
s. -
SKIP_INDEXING
Used by the Query module only, it will prevent the indexes to be updated as a result of the current operations. -
SKIP_LISTENER_NOTIFICATION
It will skip client listeners to be notified.- Since:
- 9.4.15
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFlagInt
public int getFlagInt() -
add
public org.infinispan.api.common.Flags<?,?> add(org.infinispan.api.common.Flags<?, ?> flags) - Specified by:
add
in interfaceorg.infinispan.api.common.Flag
-