public class GridCacheSetProxy<T> extends Object implements IgniteSet<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) |
<R> R |
affinityCall(IgniteCallable<R> job)
Executes given job on collocated set on the node where the set is located
(a.k.a. affinity co-location).
|
void |
affinityRun(IgniteRunnable job)
Executes given job on collocated set on the node where the set is located
(a.k.a. affinity co-location).
|
void |
blockOnRemove()
Remove callback.
|
void |
clear() |
void |
close()
Removes this set.
|
boolean |
collocated()
Returns
true if this set can be kept on the one node only. |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
GridCacheSetImpl |
delegate() |
int |
groupId() |
String |
groupName() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
String |
name()
Gets set name.
|
void |
needCheckNotRemoved() |
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on unmarshalling.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removed()
Gets status of set.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
@NotNull Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
String |
toString() |
<T1> IgniteSet<T1> |
withKeepBinary()
Returns Ignite set that operates on binary objects without deserialization.
|
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic GridCacheSetProxy()
Externalizable.public GridCacheSetProxy(GridCacheContext cctx, GridCacheSetImpl<T> delegate)
cctx - Cache context.delegate - Delegate set.public GridCacheSetImpl delegate()
public void blockOnRemove()
public int size()
public boolean isEmpty()
public boolean contains(Object o)
@NotNull public @NotNull Object[] toArray()
@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>containsAll in interface IgniteSet<T>public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public void close()
IgniteSet.removed().public String name()
public String groupName()
public int groupId()
public boolean collocated()
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 IgniteSet<T>True if this set is in collocated mode false otherwise.public boolean removed()
IgniteSet.close() method.public void affinityRun(IgniteRunnable job)
This is not supported for non-collocated sets.
affinityRun in interface IgniteSet<T>job - Job which will be co-located with the set.public <R> R affinityCall(IgniteCallable<R> job)
This is not supported for non-collocated sets.
affinityCall in interface IgniteSet<T>R - Type of the job result.job - Job which will be co-located with the set.public <T1> IgniteSet<T1> withKeepBinary()
withKeepBinary in interface IgniteSet<T>T1 - Type of binary objects.public void needCheckNotRemoved()
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 unmarshalling error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023