final CollectionClearRequest request = new CollectionClearRequest(getName());
invoke(request);
}
public String addItemListener(final ItemListener<E> listener, final boolean includeValue) {
final CollectionAddListenerRequest request = new CollectionAddListenerRequest(getName(), includeValue);
request.setServiceName(getServiceName());
EventHandler<PortableItemEvent> eventHandler = new EventHandler<PortableItemEvent>() {
public void handle(PortableItemEvent portableItemEvent) {
E item = includeValue ? (E) getContext().getSerializationService().toObject(portableItemEvent.getItem()) : null;
Member member = getContext().getClusterService().getMember(portableItemEvent.getUuid());
ItemEvent<E> itemEvent = new ItemEvent<E>(getName(), portableItemEvent.getEventType(), item, member);