+ event.getClass().getSimpleName());
}
DataAwareEntryEvent dataAwareEntryEvent = (DataAwareEntryEvent) event;
Data key = dataAwareEntryEvent.getKeyData();
Data value = dataAwareEntryEvent.getNewValueData();
final EntryEventType type = event.getEventType();
final String uuid = event.getMember().getUuid();
PortableEntryEvent portableEntryEvent = new PortableEntryEvent(key, value, null, type, uuid);
endpoint.sendEvent(portableEntryEvent, getCallId());
}
}
@Override
public void onMapEvent(MapEvent event) {
if (endpoint.isAlive()) {
final EntryEventType type = event.getEventType();
final String uuid = event.getMember().getUuid();
PortableEntryEvent portableEntryEvent =
new PortableEntryEvent(type, uuid, event.getNumberOfEntriesAffected());
endpoint.sendEvent(portableEntryEvent, getCallId());
}