Interface IJMSQueueController

All Superinterfaces:
AutoCloseable, Closeable

public interface IJMSQueueController extends Closeable
  • Method Details

    • putMessage

      void putMessage(IJMSMessage message) throws jakarta.jms.JMSException
      Enqueue a message into the queue
      Parameters:
      message - the message to enqueue
      Throws:
      jakarta.jms.JMSException - the exception
    • putMessage

      void putMessage(IJMSMessage message, List<IJMSMessageProperty<?>> properties) throws jakarta.jms.JMSException
      Enqueue a message into the queue with properties
      Parameters:
      message - the message to enqueue
      properties - the message's properties
      Throws:
      jakarta.jms.JMSException - the exception
    • createProperty

      <T> IJMSMessageProperty<T> createProperty(String name, T value)
      Create and retrieve an IJMSMessageProperty
      Parameters:
      name - the property name
      value - the property value
      Returns:
      the IJMSMessageProperty
    • setPriority

      void setPriority(int priority)
      Specifies the priority of messages that are sent

      The Jakarta Messaging API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. Clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority. Priority is set to 4 by default.

      Parameters:
      priority - the message priority to be used; must be a value between 0 and 9
      Throws:
      jakarta.jms.JMSRuntimeException - if the Jakarta Messaging provider fails to set the priority due to some internal error.
      See Also:
      • JMSProducer.getPriority()
      • Message.DEFAULT_PRIORITY