public class RabbitMQWorkQueueSpout extends WorkerSpout
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RABBITMQ_PREFETCH_COUNT |
| Constructor and Description |
|---|
RabbitMQWorkQueueSpout(String queueName) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(WorkerTuple workerTuple) |
void |
close() |
void |
fail(WorkerTuple workerTuple) |
protected com.rabbitmq.client.QueueingConsumer |
getConsumer() |
WorkerTuple |
nextTuple()
Get the next tuple from the queue.
|
void |
open() |
void |
setConfiguration(Configuration configuration) |
ack, failpublic static final int DEFAULT_RABBITMQ_PREFETCH_COUNT
public RabbitMQWorkQueueSpout(String queueName)
public void open()
open in class WorkerSpoutpublic void close()
close in class WorkerSpoutpublic WorkerTuple nextTuple() throws InterruptedException
WorkerSpoutnextTuple in class WorkerSpoutInterruptedExceptionpublic void ack(WorkerTuple workerTuple)
ack in class WorkerSpoutpublic void fail(WorkerTuple workerTuple)
fail in class WorkerSpoutprotected com.rabbitmq.client.QueueingConsumer getConsumer()
@Inject public void setConfiguration(Configuration configuration)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.