public class GeodeCacheSet<T extends Serializable> extends Object implements CacheSet<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected CacheStatistics |
statistics |
| 构造器和说明 |
|---|
GeodeCacheSet(org.apache.geode.cache.Region region) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(T o)
Adds the specified element to this set if it is not already present
(optional operation).
|
boolean |
addAll(Collection<? extends T> c)
Adds all of the elements in the specified collection to this set if
they're not already present (optional operation).
|
void |
clear()
清除所有缓存项。
|
boolean |
contains(T o)
Returns true if this set contains the specified element.
|
String |
getGroup()
取得缓存所属的组。
|
String |
getName()
取得缓存名称。
|
CacheStatistics |
getStatistics()
获取缓存统计对象。
|
boolean |
isEmpty()
Returns true if this list contains no elements.
|
Iterator<T> |
iterator()
Returns an iterator over the elements in this set.
|
void |
notifyUpdate(T k)
通知缓存项改变,需要更新。
|
boolean |
remove(T o)
Removes the specified element from this set if it is present (optional
operation).
|
boolean |
removeAll(Collection<? extends T> c)
Removes from this set all of its elements that are contained in the
specified collection (optional operation).
|
void |
replaceAll(Collection<? extends T> set)
清除缓存并将Map中的所有项目设置到缓存中。
|
void |
setRegion(org.apache.geode.cache.Region region) |
int |
size()
Returns the number of elements in this list.
|
Set<T> |
toSet()
将缓存转化为Set表示。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStatisticsprotected final transient CacheStatistics statistics
public void setRegion(org.apache.geode.cache.Region region)
public boolean contains(T o)
CacheSete such that (o==null ? e==null :
o.equals(e)).contains 在接口中 CacheSet<T extends Serializable>o - element whose presence in this set is to be tested.public Iterator<T> iterator()
CacheSetiterator 在接口中 CacheSet<T extends Serializable>public Set<T> toSet()
CacheSettoSet 在接口中 CacheSet<T extends Serializable>public boolean add(T o)
CacheSeto, to this set if this set contains no element
e such that (o==null ? e==null :
o.equals(e)). If this set already contains the specified element,
the call leaves this set unchanged and returns false. In
combination with the restriction on constructors, this ensures that sets
never contain duplicate elements.
The stipulation above does not imply that sets must accept all elements; sets may refuse to add any particular element, including null, and throwing an exception, as described in the specification for Collection.add. Individual set implementations should clearly document any restrictions on the elements that they may contain.
add 在接口中 CacheSet<T extends Serializable>o - element to be added to this set.public boolean remove(T o)
CacheSete such that
(o==null ? e==null : o.equals(e)), if the set contains such
an element. Returns true if the set contained the specified
element (or equivalently, if the set changed as a result of the call).
(The set will not contain the specified element once the call returns.)remove 在接口中 CacheSet<T extends Serializable>o - object to be removed from this set, if present.public boolean addAll(Collection<? extends T> c)
CacheSetaddAll 在接口中 CacheSet<T extends Serializable>c - collection whose elements are to be added to this set.#add(Object)public void replaceAll(Collection<? extends T> set)
CacheSetreplaceAll 在接口中 CacheSet<T extends Serializable>set - Java Setpublic boolean removeAll(Collection<? extends T> c)
CacheSetremoveAll 在接口中 CacheSet<T extends Serializable>c - collection that defines which elements will be removed from
this set.#remove(Object)public void notifyUpdate(T k)
CacheSetnotifyUpdate 在接口中 CacheSet<T extends Serializable>k - 缓存的对象public String getGroup()
GroupCacheablegetGroup 在接口中 GroupCacheablepublic String getName()
GroupCacheablegetName 在接口中 GroupCacheablepublic int size()
GroupCacheablesize 在接口中 GroupCacheablepublic boolean isEmpty()
GroupCacheableisEmpty 在接口中 GroupCacheablepublic void clear()
GroupCacheableclear 在接口中 GroupCacheablepublic CacheStatistics getStatistics()
GroupCacheablegetStatistics 在接口中 GroupCacheableCopyright © 2016–2018. All rights reserved.