public class CacheObjectProxy<E extends Serializable> extends Object implements CacheObject<E>
构造器和说明 |
---|
CacheObjectProxy(CacheObject<E> origin) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
清除所有缓存项。
|
E |
get()
取得缓存的值。
|
String |
getGroup()
取得缓存所属的组。
|
String |
getName()
取得缓存名称。
|
CacheStatistics |
getStatistics()
获取缓存统计对象。
|
boolean |
isEmpty()
Returns true if this list contains no elements.
|
void |
notifyUpdate()
值改变通知同步。
|
void |
set(E o)
设置缓存的值。
|
int |
size()
Returns the number of elements in this list.
|
public CacheObjectProxy(CacheObject<E> origin)
public void set(E o)
CacheObject
set
在接口中 CacheObject<E extends Serializable>
o
- 缓存值public E get()
CacheObject
get
在接口中 CacheObject<E extends Serializable>
public void notifyUpdate()
CacheObject
notifyUpdate
在接口中 CacheObject<E extends Serializable>
public String getGroup()
GroupCacheable
getGroup
在接口中 GroupCacheable
public String getName()
GroupCacheable
getName
在接口中 GroupCacheable
public int size()
GroupCacheable
size
在接口中 GroupCacheable
public boolean isEmpty()
GroupCacheable
isEmpty
在接口中 GroupCacheable
public void clear()
GroupCacheable
clear
在接口中 GroupCacheable
public CacheStatistics getStatistics()
GroupCacheable
getStatistics
在接口中 GroupCacheable
Copyright © 2016–2018. All rights reserved.