Interface ActiveMQProducerOperations
- All Known Implementing Classes:
ActiveMQDynamicProducerDelegate, ActiveMQProducerDelegate
public interface ActiveMQProducerOperations
-
Method Summary
Modifier and TypeMethodDescriptionCreate a ClientMessage.createMessage(byte[] body) Create a ClientMessage with the specified body.createMessage(byte[] body, Map<String, Object> properties) Create a ClientMessage with the specified body and message properties.createMessage(String body) Create a ClientMessage with the specified body.createMessage(String body, Map<String, Object> properties) Create a ClientMessage with the specified body and message properties.createMessage(Map<String, Object> properties) Create a ClientMessage with the specified message properties.booleansendMessage(byte[] body) Create a new ClientMessage with the specified body and send to the server.sendMessage(byte[] body, Map<String, Object> properties) Create a new ClientMessage with the specified body and and properties and send to the serversendMessage(String body) Create a new ClientMessage with the specified body and send to the server.sendMessage(String body, Map<String, Object> properties) Create a new ClientMessage with the specified body and and properties and send to the serversendMessage(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 Details
-
isUseDurableMessage
boolean isUseDurableMessage() -
setUseDurableMessage
void setUseDurableMessage(boolean useDurableMessage) Disables/Enables creating durable messages. By default, durable messages are created.- Parameters:
useDurableMessage- iftrue, 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
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
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
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
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
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
Send a ClientMessage to the server.- Parameters:
message- the message to send
-
sendMessage
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
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
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
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
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
-