super(instanceName, serviceName, name);
this.name = name;
}
public String addItemListener(final ItemListener<E> listener, final boolean includeValue) {
final AddListenerRequest request = new AddListenerRequest(name, includeValue);
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>(name, portableItemEvent.getEventType(), item, member);