public enum CacheType extends Enum<CacheType>
Cache
interfaceCache
Enum Constant and Description |
---|
DISTRIBUTED_PERMANENT |
DISTRIBUTED_PERSISTENT |
DISTRIBUTED_TEMP |
LOCAL_PERMANENT |
LOCAL_PERSISTENT |
LOCAL_TEMP |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isDistributed()
Whether this cache type is distributed or in other-words replicated among the cluster
|
abstract boolean |
isPermanent()
Whether this cache type is permanent or in other-words guaranteed to exist throughout
the session
|
abstract boolean |
isPersistent()
Whether this cache type is persistent or in other-words guaranteed to exist within different
sessions after JVM restart
|
static CacheType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheType LOCAL_PERSISTENT
public static final CacheType LOCAL_TEMP
public static final CacheType LOCAL_PERMANENT
public static final CacheType DISTRIBUTED_PERSISTENT
public static final CacheType DISTRIBUTED_TEMP
public static final CacheType DISTRIBUTED_PERMANENT
public static CacheType[] values()
for (CacheType c : CacheType.values()) System.out.println(c);
public static CacheType 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 abstract boolean isDistributed()
public abstract boolean isPermanent()
public abstract boolean isPersistent()
Copyright © 2010–2016 AdroitLogic. All rights reserved.