@Override public void put(List<Event> events) throws IOException { Preconditions.checkNotNull(events); for (Event e : events) { if (e != null) { queue.enqueue(toBytes(e)); } } }
@Override public void put(Event event) throws IOException { Preconditions.checkNotNull(event); queue.enqueue(toBytes(event)); }