final NodeEngine nodeEngine = getNodeEngine();
try {
final Map<Integer, Object> resultMap
= nodeEngine.getOperationService().invokeOnAllPartitions(
MultiMapService.SERVICE_NAME,
new MultiMapOperationFactory(name, OperationFactoryType.CLEAR)
);
int numberOfAffectedEntries = 0;
for (Object o : resultMap.values()) {
numberOfAffectedEntries += (Integer) o;