public interface QueueConsumer extends Closeable
| Modifier and Type | Method and Description |
|---|---|
DequeueResult<byte[]> |
dequeue()
Dequeue an entry from the queue.
|
DequeueResult<byte[]> |
dequeue(int maxBatchSize)
Dequeue multiple entries from the queue.
|
ConsumerConfig |
getConfig()
Returns the configuration of this consumer.
|
QueueName |
getQueueName()
Returns the queue name that this consumer is working on.
|
QueueName getQueueName()
ConsumerConfig getConfig()
DequeueResult<byte[]> dequeue() throws IOException
DequeueResult.IOExceptionDequeueResult<byte[]> dequeue(int maxBatchSize) throws IOException
maxBatchSize - Maximum number of entries to queue.DequeueResult.IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.