org.exoplatform.forum.common.cache.model
Enum CacheType
java.lang.Object
java.lang.Enum<CacheType>
org.exoplatform.forum.common.cache.model.CacheType
- All Implemented Interfaces:
- Serializable, Comparable<CacheType>
public enum CacheType
- extends Enum<CacheType>
|
Method Summary |
|
createFutureCache(org.exoplatform.services.cache.ExoCache<K,V> cache)
|
|
getFromService(org.exoplatform.services.cache.CacheService service)
|
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. |
CATEGORY_DATA
public static final CacheType CATEGORY_DATA
CATEGORY_LIST
public static final CacheType CATEGORY_LIST
FORUM_DATA
public static final CacheType FORUM_DATA
FORUM_LIST
public static final CacheType FORUM_LIST
TOPIC_DATA
public static final CacheType TOPIC_DATA
TOPIC_LIST
public static final CacheType TOPIC_LIST
TOPIC_LIST_COUNT
public static final CacheType TOPIC_LIST_COUNT
POST_DATA
public static final CacheType POST_DATA
POST_LIST
public static final CacheType POST_LIST
POST_LIST_COUNT
public static final CacheType POST_LIST_COUNT
WATCH_LIST_DATA
public static final CacheType WATCH_LIST_DATA
LINK_LIST_DATA
public static final CacheType LINK_LIST_DATA
OBJECT_NAME_DATA
public static final CacheType OBJECT_NAME_DATA
MISC_DATA
public static final CacheType MISC_DATA
FAQ_MARKUP
public static final CacheType FAQ_MARKUP
POLL_DATA
public static final CacheType POLL_DATA
POLL_LIST
public static final CacheType POLL_LIST
POLL_SUMMARY_DATA
public static final CacheType POLL_SUMMARY_DATA
BBCODE_DATA
public static final CacheType BBCODE_DATA
LIST_BBCODE_DATA
public static final CacheType LIST_BBCODE_DATA
values
public static CacheType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CacheType c : CacheType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CacheType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
getFromService
public <K extends ScopeCacheKey,V extends Serializable> org.exoplatform.services.cache.ExoCache<K,V> getFromService(org.exoplatform.services.cache.CacheService service)
createFutureCache
public <K extends ScopeCacheKey,V extends Serializable> org.exoplatform.services.cache.future.FutureExoCache<K,V,ServiceContext<V>> createFutureCache(org.exoplatform.services.cache.ExoCache<K,V> cache)
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.