Package com.hazelcast.collection
Interface ICollection<E>
- Type Parameters:
- E- item
- All Superinterfaces:
- Collection<E>,- DistributedObject,- Iterable<E>
Concurrent, distributed, partitioned, listenable collection.
- 
Method SummaryModifier and TypeMethodDescriptionaddItemListener(ItemListener<E> listener, boolean includeValue) Adds an item listener for this collection.getName()Returns the name of this collection.booleanremoveItemListener(UUID registrationId) Removes the specified item listener.Methods inherited from interface java.util.Collectionadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface com.hazelcast.core.DistributedObjectdestroy, getDestroyContextForTenant, getPartitionKey, getServiceName
- 
Method Details- 
getNameReturns the name of this collection.- Specified by:
- getNamein interface- DistributedObject
- Returns:
- the unique name for this object.
 
- 
addItemListenerAdds an item listener for this collection. The listener will be notified of all collection add/remove events. Listeners are non-destructive: They are notified about changes in a collection, but they won't have any effect on the collection itself. This is particularly relevant for IQueue: A listener won't consume queue elements. It's not a replacement for Queue consumers.- Parameters:
- listener- the item listener
- includeValue-- trueif the updated item should be passed to the item listener,- falseotherwise
- Returns:
- returns the registration ID
 
- 
removeItemListenerRemoves the specified item listener. Returns silently if the specified listener was not added before.- Parameters:
- registrationId- ID of the listener registration
- Returns:
- trueif the item listener is removed,- falseotherwise
 
 
-