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

com.netflix.astyanax.recipes.queue.MessageProducer Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.recipes.queue;

import java.util.Collection;

public interface MessageProducer {
    /**
     * Schedule a job for execution
     * @param message
     * @return UUID assigned to this message 
     * 
     * @throws MessageQueueException
     */
    String sendMessage(Message message) throws MessageQueueException;

    /**
     * Schedule a batch of jobs
     * @param messages
     * @return Map of messages to their assigned UUIDs
     * 
     * @throws MessageQueueException
     */
    SendMessageResponse sendMessages(Collection messages) throws MessageQueueException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy