|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Flag>
org.infinispan.client.hotrod.Flag
public enum 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 for Map
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 value
Enum Constant Summary | |
---|---|
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 |
|
FORCE_RETURN_VALUE
By default, previously existing values for Map operations are not returned. |
Method Summary | |
---|---|
int |
getFlagInt()
|
static Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Flag[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Flag FORCE_RETURN_VALUE
Map
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.
public static final Flag DEFAULT_LIFESPAN
public static final Flag DEFAULT_MAXIDLE
Method Detail |
---|
public static Flag[] values()
for (Flag c : Flag.values()) System.out.println(c);
public static Flag valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getFlagInt()
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |