public class GridCacheSetProxy<T> extends Object implements GridCacheSet<T>, Externalizable
| Constructor and Description |
|---|
GridCacheSetProxy()
Required by
Externalizable. |
GridCacheSetProxy(GridCacheContext cctx,
GridCacheSetImpl<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
collocated()
Returns
true if this set can be kept on the one node only. |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
String |
name()
Gets set name.
|
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on demarshalling.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removed()
Gets status of set.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridCacheSetProxy()
Externalizable.public GridCacheSetProxy(GridCacheContext cctx, GridCacheSetImpl<T> delegate)
cctx - Cache context.delegate - Delegate set.public int size()
public boolean isEmpty()
public boolean contains(Object o)
@NotNull public <T1> T1[] toArray(T1[] a)
public boolean add(T t)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface Set<T>public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public String name()
name in interface GridCacheSet<T>public boolean collocated()
throws GridException
true if this set can be kept on the one node only.
Returns false if this set can be kept on the many nodes.collocated in interface GridCacheSet<T>True if this set is in collocated mode false otherwise.GridException - If operation failed.public boolean removed()
removed in interface GridCacheSet<T>True if set was removed from cache false otherwise.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionprotected Object readResolve() throws ObjectStreamException
ObjectStreamException - Thrown in case of demarshalling error.Copyright © 2014. All rights reserved.