com.hazelcast.core
Interface ICollection<E>

Type Parameters:
E - item
All Superinterfaces:
Instance
All Known Subinterfaces:
IList<E>, IQueue<E>, ISet<E>

public interface ICollection<E>
extends Instance

Concurrent, distributed, partitioned, observable collection.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hazelcast.core.Instance
Instance.InstanceType
 
Method Summary
 void addItemListener(ItemListener<E> listener, boolean includeValue)
          Adds an item listener for this collection.
 String getName()
          Returns the name of this collection
 void removeItemListener(ItemListener<E> listener)
          Removes the specified item listener.
 
Methods inherited from interface com.hazelcast.core.Instance
destroy, getId, getInstanceType
 

Method Detail

getName

String getName()
Returns the name of this collection

Returns:
name of this collection

addItemListener

void addItemListener(ItemListener<E> listener,
                     boolean includeValue)
Adds an item listener for this collection. Listener will get notified for all collection add/remove events.

Parameters:
listener - item listener
includeValue - true updated item should be passed to the item listener, false otherwise.

removeItemListener

void removeItemListener(ItemListener<E> listener)
Removes the specified item listener. Returns silently if the specified listener is not added before.

Parameters:
listener - item listener for this collection


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.