public class AntiEntropySetDelegate<E> extends Object implements SetDelegate<E>
| Constructor and Description |
|---|
AntiEntropySetDelegate(String name,
Serializer serializer,
AntiEntropyProtocolConfig config,
PrimitiveManagementService managementService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
addListener(SetDelegateEventListener<E> listener)
Adds the specified listener to the set which will be notified whenever the entries in the set are changed.
|
void |
clear() |
void |
close()
Closes the set.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeListener(SetDelegateEventListener<E> listener)
Removes the specified listener from the set such that it will no longer receive change notifications.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic AntiEntropySetDelegate(String name, Serializer serializer, AntiEntropyProtocolConfig config, PrimitiveManagementService managementService)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public void addListener(SetDelegateEventListener<E> listener)
SetDelegateaddListener in interface SetDelegate<E>listener - listener to register for eventspublic void removeListener(SetDelegateEventListener<E> listener)
SetDelegateremoveListener in interface SetDelegate<E>listener - listener to deregister for eventspublic void close()
SetDelegateclose in interface SetDelegate<E>Copyright © 2013–2018. All rights reserved.