Пример #1
0
 @Override
 public void put(List<Event> events) throws IOException {
   Preconditions.checkNotNull(events);
   for (Event e : events) {
     if (e != null) {
       queue.enqueue(toBytes(e));
     }
   }
 }
Пример #2
0
 @Override
 public void put(Event event) throws IOException {
   Preconditions.checkNotNull(event);
   queue.enqueue(toBytes(event));
 }