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

org.pipservices4.messaging.connect.IMessageQueueConnection Maven / Gradle / Ivy

The newest version!
package org.pipservices4.messaging.connect;

import java.util.List;

/**
 * Defines an interface for message queue connections
 */
public interface IMessageQueueConnection {
    /**
     * Reads a list of registered queue names.
     * If connection doesn't support this function returnes an empty list.
     *
     * @return a list with registered queue names.
     */
    List readQueueNames();

    /**
     * Creates a message queue.
     * If connection doesn't support this function it exists without error.
     *
     * @param name the name of the queue to be created.
     */
    void createQueue(String name);

    /**
     * Deletes a message queue.
     * If connection doesn't support this function it exists without error.
     *
     * @param name the name of the queue to be deleted.
     */
    void deleteQueue(String name);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy