final List<ThriftFlumeEvent> e) throws Exception {
return callTimeoutPool.submit(new Callable<Void>() {
@Override
public Void call() throws Exception {
Status status = client.client.appendBatch(e);
if (status != Status.OK) {
throw new EventDeliveryException("Failed to deliver events. Server " +
"returned status : " + status.name());
}
return null;
}
});
}