Interface ActiveMQProducerOperations
-
- All Known Implementing Classes:
ActiveMQDynamicProducerDelegate,ActiveMQProducerDelegate
public interface ActiveMQProducerOperations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientMessagecreateMessage()Create a ClientMessage.ClientMessagecreateMessage(byte[] body)Create a ClientMessage with the specified body.ClientMessagecreateMessage(byte[] body, Map<String,Object> properties)Create a ClientMessage with the specified body and message properties.ClientMessagecreateMessage(String body)Create a ClientMessage with the specified body.ClientMessagecreateMessage(String body, Map<String,Object> properties)Create a ClientMessage with the specified body and message properties.ClientMessagecreateMessage(Map<String,Object> properties)Create a ClientMessage with the specified message properties.booleanisUseDurableMessage()ClientMessagesendMessage(byte[] body)Create a new ClientMessage with the specified body and send to the server.ClientMessagesendMessage(byte[] body, Map<String,Object> properties)Create a new ClientMessage with the specified body and and properties and send to the serverClientMessagesendMessage(String body)Create a new ClientMessage with the specified body and send to the server.ClientMessagesendMessage(String body, Map<String,Object> properties)Create a new ClientMessage with the specified body and and properties and send to the serverClientMessagesendMessage(Map<String,Object> properties)Create a new ClientMessage with the specified properties and send to the servervoidsendMessage(ClientMessage message)Send a ClientMessage to the server.voidsetUseDurableMessage(boolean useDurableMessage)Disables/Enables creating durable messages.
-
-
-
Method Detail
-
isUseDurableMessage
boolean isUseDurableMessage()
-
setUseDurableMessage
void setUseDurableMessage(boolean useDurableMessage)
Disables/Enables creating durable messages. By default, durable messages are created.- Parameters:
useDurableMessage- if true, durable messages will be created
-
createMessage
ClientMessage createMessage()
Create a ClientMessage.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Returns:
- a new ClientMessage
-
createMessage
ClientMessage createMessage(byte[] body)
Create a ClientMessage with the specified body.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Parameters:
body- the body for the new message- Returns:
- a new ClientMessage with the specified body
-
createMessage
ClientMessage createMessage(String body)
Create a ClientMessage with the specified body.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Parameters:
body- the body for the new message- Returns:
- a new ClientMessage with the specified body
-
createMessage
ClientMessage createMessage(Map<String,Object> properties)
Create a ClientMessage with the specified message properties.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Parameters:
properties- message properties for the new message- Returns:
- a new ClientMessage with the specified message properties
-
createMessage
ClientMessage createMessage(byte[] body, Map<String,Object> properties)
Create a ClientMessage with the specified body and message properties.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Parameters:
body- the body for the new messageproperties- message properties for the new message- Returns:
- a new ClientMessage with the specified body and message properties
-
createMessage
ClientMessage createMessage(String body, Map<String,Object> properties)
Create a ClientMessage with the specified body and message properties.If useDurableMessage is false, a non-durable message is created. Otherwise, a durable message is created.
- Parameters:
body- the body for the new messageproperties- message properties for the new message- Returns:
- a new ClientMessage with the specified body and message properties
-
sendMessage
void sendMessage(ClientMessage message)
Send a ClientMessage to the server.- Parameters:
message- the message to send
-
sendMessage
ClientMessage sendMessage(byte[] body)
Create a new ClientMessage with the specified body and send to the server.- Parameters:
body- the body for the new message- Returns:
- the message that was sent
-
sendMessage
ClientMessage sendMessage(String body)
Create a new ClientMessage with the specified body and send to the server.- Parameters:
body- the body for the new message- Returns:
- the message that was sent
-
sendMessage
ClientMessage sendMessage(Map<String,Object> properties)
Create a new ClientMessage with the specified properties and send to the server- Parameters:
properties- the properties for the new message- Returns:
- the message that was sent
-
sendMessage
ClientMessage sendMessage(byte[] body, Map<String,Object> properties)
Create a new ClientMessage with the specified body and and properties and send to the server- Parameters:
properties- the properties for the new message- Returns:
- the message that was sent
-
sendMessage
ClientMessage sendMessage(String body, Map<String,Object> properties)
Create a new ClientMessage with the specified body and and properties and send to the server- Parameters:
properties- the properties for the new message- Returns:
- the message that was sent
-
-