类 AcknowledgeMode
java.lang.Object
org.springframework.boot.autoconfigure.jms.AcknowledgeMode
Acknowledge modes for a JMS Session. Supports the acknowledge modes defined by
Session
as well as other, non-standard modes.
Note that Session.SESSION_TRANSACTED
is not defined. It should be
handled through a call to JmsAccessor.setSessionTransacted(boolean)
.
- 从以下版本开始:
- 3.2.0
- 作者:
- Andy Wilkinson
-
字段概要
字段修饰符和类型字段说明static final AcknowledgeMode
Messages sent or received from the session are automatically acknowledged.static final AcknowledgeMode
Messages are acknowledged once the message listener implementation has calledMessage.acknowledge()
.static final AcknowledgeMode
Similar to auto acknowledgment except that said acknowledgment is lazy. -
方法概要
-
字段详细资料
-
AUTO
Messages sent or received from the session are automatically acknowledged. This is the simplest mode and enables once-only message delivery guarantee. -
CLIENT
Messages are acknowledged once the message listener implementation has calledMessage.acknowledge()
. This mode gives the application (rather than the JMS provider) complete control over message acknowledgement. -
DUPS_OK
Similar to auto acknowledgment except that said acknowledgment is lazy. As a consequence, the messages might be delivered more than once. This mode enables at-least-once message delivery guarantee.
-
-
方法详细资料
-
getMode
public int getMode() -
of
Creates anAcknowledgeMode
of the givenmode
. The mode may beauto
,client
,dupsok
or a non-standard acknowledge mode that can beparsed as an integer
.- 参数:
mode
- the mode- 返回:
- the acknowledge mode
-