use of com.hazelcast.cache.impl.CacheClearResponse in project hazelcast by hazelcast.
the class CacheRemoveAllMessageTask method reduce.
@Override
protected Object reduce(Map<Integer, Object> map) {
for (Map.Entry<Integer, Object> entry : map.entrySet()) {
if (entry.getValue() == null) {
continue;
}
final CacheClearResponse cacheClearResponse = (CacheClearResponse) nodeEngine.toObject(entry.getValue());
final Object response = cacheClearResponse.getResponse();
if (response instanceof CacheException) {
throw (CacheException) response;
}
}
return null;
}
Aggregations