public interface IJMSQueueController extends Closeable
Modifier and Type | Method and Description |
---|---|
<T> IJMSMessageProperty<T> |
createProperty(String name,
T value)
Create and retrieve an IJMSMessageProperty
|
void |
putMessage(IJMSMessage message)
Enqueue a message into the queue
|
void |
putMessage(IJMSMessage message,
List<IJMSMessageProperty<?>> properties)
Enqueue a message into the queue with properties
|
void |
setPriority(int priority)
Specifies the priority of messages that are sent
|
void putMessage(IJMSMessage message) throws javax.jms.JMSException
message
- the message to enqueuejavax.jms.JMSException
- the exceptionvoid putMessage(IJMSMessage message, List<IJMSMessageProperty<?>> properties) throws javax.jms.JMSException
message
- the message to enqueueproperties
- the message's propertiesjavax.jms.JMSException
- the exception<T> IJMSMessageProperty<T> createProperty(String name, T value)
name
- the property namevalue
- the property valuevoid setPriority(int priority)
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.
priority
- the message priority to be used; must be a value between 0 and 9javax.jms.JMSRuntimeException
- if the Jakarta Messaging provider fails to set the priority due to some internal error.JMSProducer.getPriority()
,
Message.DEFAULT_PRIORITY
Copyright © 2021 Visiativ Software. All rights reserved.