public enum CacheModeType extends Enum<CacheModeType>
Enumeration for the different interaction modes between the session and the Level 2 Cache.
Enum Constant and Description |
---|
GET
Corresponds to
CacheMode.GET . |
IGNORE
Corresponds to
CacheMode.IGNORE . |
NORMAL
Corresponds to
CacheMode.NORMAL . |
PUT
Corresponds to
CacheMode.PUT . |
REFRESH
Corresponds to
CacheMode.REFRESH . |
Modifier and Type | Method and Description |
---|---|
static CacheModeType |
fromCacheMode(CacheMode cacheMode)
Conversion from
CacheMode to CacheModeType . |
CacheMode |
getCacheMode() |
static CacheModeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheModeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheModeType GET
Corresponds to CacheMode.GET
.
CacheMode.GET
public static final CacheModeType IGNORE
Corresponds to CacheMode.IGNORE
.
CacheMode.IGNORE
public static final CacheModeType NORMAL
Corresponds to CacheMode.NORMAL
.
CacheMode.NORMAL
public static final CacheModeType PUT
Corresponds to CacheMode.PUT
.
CacheMode.PUT
public static final CacheModeType REFRESH
Corresponds to CacheMode.REFRESH
.
CacheMode.REFRESH
public static CacheModeType[] values()
for (CacheModeType c : CacheModeType.values()) System.out.println(c);
public static CacheModeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic CacheMode getCacheMode()
public static CacheModeType fromCacheMode(CacheMode cacheMode)
Conversion from CacheMode
to CacheModeType
.
cacheMode
- The cache mode to convertnull
if the given accessType
is null
.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.