@Override
public InputDatum<T> dequeue(long timeout, TimeUnit timeoutUnit) throws IOException, InterruptedException {
StreamConsumer consumer = consumerSupplier.get();
return new BasicInputDatum<StreamEvent, T>(consumer.getStreamName(),
consumer.poll(batchSize, timeout, timeoutUnit), eventTransform);
}
}