Clock clock = _clockSerializer.deserialize(clockBytes);
Event<T> event = new SimpleEvent<T>(value, clock);
if(!batch.put(event)) {
throw new SerializationException("Invalid clocks:" + " clock=" + clock + " minClock=" + header.getMinClock() + " maxClock=" + header.getMaxClock());
}
}
return batch;
} catch(SerializationException e) {
throw e;
} catch(Exception e) {
throw new SerializationException("Failed to deserialize", e);
}
}