Class QosSettings
java.lang.Object
org.springframework.jms.support.QosSettings
Gather the Quality-of-Service settings that can be used when sending a message.
- Since:
- 5.0
- Author:
- Stephane Nicoll
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new instance with the default settings.QosSettings(int deliveryMode, int priority, long timeToLive) Create a new instance with the specified settings.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintReturn the delivery mode to use when sending a message.intReturn the priority of a message when sending.longReturn the time-to-live of the message when sending.inthashCode()voidsetDeliveryMode(int deliveryMode) Set the delivery mode to use when sending a message.voidsetPriority(int priority) Set the priority of a message when sending.voidsetTimeToLive(long timeToLive) Set the time-to-live of the message when sending.toString()
- 
Constructor Details- 
QosSettingspublic QosSettings()Create a new instance with the default settings.- See Also:
 
- 
QosSettingspublic QosSettings(int deliveryMode, int priority, long timeToLive) Create a new instance with the specified settings.
 
- 
- 
Method Details- 
setDeliveryModepublic void setDeliveryMode(int deliveryMode) Set the delivery mode to use when sending a message. Default is the JMS Message default: "PERSISTENT".- Parameters:
- deliveryMode- the delivery mode to use
- See Also:
 
- 
getDeliveryModepublic int getDeliveryMode()Return the delivery mode to use when sending a message.
- 
setPrioritypublic void setPriority(int priority) Set the priority of a message when sending.- See Also:
 
- 
getPrioritypublic int getPriority()Return the priority of a message when sending.
- 
setTimeToLivepublic void setTimeToLive(long timeToLive) Set the time-to-live of the message when sending.- Parameters:
- timeToLive- the message's lifetime (in milliseconds)
- See Also:
 
- 
getTimeToLivepublic long getTimeToLive()Return the time-to-live of the message when sending.
- 
equals
- 
hashCode
- 
toString
 
-