com.netflix.astyanax.recipes.queue.MessageProducer Maven / Gradle / Ivy
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;
}