Package com.axemble.vdoc.sdk.interfaces
Interface IJMSQueueController
- All Superinterfaces:
AutoCloseable
,Closeable
-
Method Summary
Modifier and TypeMethodDescription<T> IJMSMessageProperty
<T> createProperty
(String name, T value) Create and retrieve an IJMSMessagePropertyvoid
putMessage
(IJMSMessage message) Enqueue a message into the queuevoid
putMessage
(IJMSMessage message, List<IJMSMessageProperty<?>> properties) Enqueue a message into the queue with propertiesvoid
setPriority
(int priority) Specifies the priority of messages that are sent
-
Method Details
-
putMessage
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 enqueueproperties
- the message's properties- Throws:
jakarta.jms.JMSException
- the exception
-
createProperty
Create and retrieve an IJMSMessageProperty- Parameters:
name
- the property namevalue
- the property value- Returns:
- the IJMSMessageProperty
-
setPriority
void setPriority(int priority) Specifies the priority of messages that are sentThe 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:
-