@Override public AsyncFuture<Void> sendBatches(final Collection<Batch> batches) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(batches); }
@Override public AsyncFuture<Void> sendBatches(final Collection<Batch> batches) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(batches); }
@Override public AsyncFuture<Void> sendEvents(Collection<Event> events) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(filterEvents(events)); }
@Override public AsyncFuture<Void> sendEvents(Collection<Event> events) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(filterEvents(events)); }
@Override public AsyncFuture<Void> sendMetrics(Collection<Metric> metrics) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(filterMetrics(metrics)); }
@Override public AsyncFuture<Void> sendMetrics(Collection<Metric> metrics) { final ProtocolConnection c = connection.get(); if (c == null) { return async.failed(new IllegalStateException("not connected to " + protocol)); } return c.sendAll(filterMetrics(metrics)); }