public class ConditionalPublishingRabbitMQBolt extends RabbitMQBolt
RabbitMQBolt that provides the ability to determine whether a message should be published
based on the input tuple
This class is sort of an SPI meaning that it is meant to be subclassed
and the method shouldPublish(backtype.storm.tuple.Tuple)
to be overridden with the custom decision logic| Constructor and Description |
|---|
ConditionalPublishingRabbitMQBolt(TupleToMessage scheme) |
ConditionalPublishingRabbitMQBolt(TupleToMessage scheme,
Declarator declarator) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(backtype.storm.tuple.Tuple tuple) |
protected boolean |
shouldPublish(backtype.storm.tuple.Tuple tuple) |
acknowledge, declareOutputFields, prepare, publishpublic ConditionalPublishingRabbitMQBolt(TupleToMessage scheme)
public ConditionalPublishingRabbitMQBolt(TupleToMessage scheme, Declarator declarator)
public void execute(backtype.storm.tuple.Tuple tuple)
execute in interface backtype.storm.task.IBoltexecute in class RabbitMQBoltprotected boolean shouldPublish(backtype.storm.tuple.Tuple tuple)
Copyright © 2013-2015. All Rights Reserved.