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

gov.nasa.pds.harvest.mq.MQClient Maven / Gradle / Ivy

package gov.nasa.pds.harvest.mq;

/**
 * Message queue interface
 * @author karpenko
 */
public interface MQClient
{
    /**
     * Run a message queue client. Usually this method blocks.
     * @throws Exception
     */
    public void run() throws Exception;
    
    /**
     * Get message queue type (e.g., RabbitMQ or ActiveMQ)
     * @return queue type
     */
    public String getType();
    
    /**
     * Get message queue connection info (host:port or URL)
     * @return connection info
     */
    public String getConnectionInfo();
    
    /**
     * Get connection status 
     * @return connection status
     */
    public boolean isConnected();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy