
io.latent.storm.rabbitmq.RedeliveryStreamSeparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storm-rabbitmq Show documentation
Show all versions of storm-rabbitmq Show documentation
A library of tools for interacting with RabbitMQ from Storm.
package io.latent.storm.rabbitmq;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Separates initial (first time) deliveries off of a RabbitMQ queue from redeliveries (messages that are being
* processed after initial processing failed for some reason).
*
* @author [email protected]
*/
public class RedeliveryStreamSeparator implements MultiStreamSplitter {
public static final String INITIAL_DELIVERY_STREAM = "initial_delivery";
public static final String REDELIVERY_STREAM = "redelivery";
private static final List streams = Collections.unmodifiableList(Arrays.asList(INITIAL_DELIVERY_STREAM,
REDELIVERY_STREAM));
@Override
public List streamNames() {
return streams;
}
@Override
public String selectStream(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy