All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swisspush.gateleen.queue.queuing.splitter.QueueSplitter Maven / Gradle / Ivy

There is a newer version: 2.1.12
Show newest version
package org.swisspush.gateleen.queue.queuing.splitter;

import io.vertx.core.Future;
import io.vertx.core.http.HttpServerRequest;

/**
 * Interface for queues configured to be split in sub-queues. The method {@link QueueSplitter#convertToSubQueue(String, HttpServerRequest)}
 * evaluates the convert of the queue name in a sub-queue name.
 *
 * @author https://github.com/gcastaldi [Giannandrea Castaldi]
 */
public interface QueueSplitter {

    public Future initialize();

        /**
         * Convert the queue name in a sub-queue name. If not necessary maintains the initial queue name.
         *
         * @param queue
         * @param request
         * @return sub-queue name
         */
    String convertToSubQueue(String queue, HttpServerRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy