public final class CacheMode extends Object implements Serializable
Session.setCacheMode(CacheMode)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static CacheMode |
GET
The session may read items from the cache, but will not add items,
except to invalidate items when updates occur
|
static CacheMode |
IGNORE
The session will never interact with the cache, except to invalidate
cache items when updates occur
|
static CacheMode |
NORMAL
The session may read items from the cache, and add items to the cache
|
static CacheMode |
PUT
The session will never read items from the cache, but will add items
to the cache as it reads them from the database.
|
static CacheMode |
REFRESH
The session will never read items from the cache, but will add items
to the cache as it reads them from the database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isGetEnabled() |
boolean |
isPutEnabled() |
static CacheMode |
parse(String name) |
String |
toString() |
public static final CacheMode NORMAL
public static final CacheMode IGNORE
public static final CacheMode GET
public static final CacheMode PUT
public static final CacheMode REFRESH
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved