Interface ActiveMQProducerOperations

All Known Implementing Classes:
ActiveMQDynamicProducerDelegate, ActiveMQProducerDelegate

public interface ActiveMQProducerOperations
  • Method Details

    • 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 message
      properties - 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 message
      properties - 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