public interface DistributedCollection<E> extends SyncPrimitive, SyncIterable<E>, Collection<E>
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CollectionEventListener<E> listener)
Registers the specified listener to be notified whenever
the collection is updated.
|
AsyncDistributedCollection<E> |
async()
Returns the underlying asynchronous primitive.
|
SyncIterator<E> |
iterator()
Returns the synchronous iterator.
|
void |
removeListener(CollectionEventListener<E> listener)
Unregisters the specified listener.
|
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraySyncIterator<E> iterator()
SyncIterableiterator in interface Collection<E>iterator in interface Iterable<E>iterator in interface SyncIterable<E>void addListener(CollectionEventListener<E> listener)
listener - listener to notify about collection update eventsvoid removeListener(CollectionEventListener<E> listener)
listener - listener to unregister.AsyncDistributedCollection<E> async()
SyncPrimitiveasync in interface SyncPrimitiveCopyright © 2013–2018. All rights reserved.