public interface MessageProducer
| Modifier and Type | Method and Description |
|---|---|
void |
send(Object message)
Send the given POJO message to the default queue for the producer
|
void |
send(Object message,
Map<String,Object> headers)
Send the given POJO message to the default queue for the producer with the given headers.
|
void |
send(Object message,
String queueName)
Send the given POJO message to the given queue
|
void |
send(Object message,
String queueName,
Map<String,Object> headers)
Send the given POJO message to the given queue with the given headers.
|
void send(Object message) throws MessagingException
message - MessagingExceptionvoid send(Object message, Map<String,Object> headers) throws MessagingException
If the underlying messaging implementation does not support headers natively an alternative method of encoding them as part of the body can be used.
message - headers - MessagingExceptionvoid send(Object message, String queueName) throws MessagingException
message - queueName - MessagingExceptionvoid send(Object message, String queueName, Map<String,Object> headers) throws MessagingException
If the underlying messaging implementation does not support headers natively an alternative method of encoding them as part of the body can be used.
message - queueName - headers - MessagingExceptionCopyright © 2014 Alfresco Software. All rights reserved.