public T poll() {
        return poll(0, TimeUnit.MILLISECONDS);
    }
Immediately returns the next {{@link Event}} available or null
if the accumulator is empty.

@return The next event available or null.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/runtime/EventAccumulator.java