Name
DeliveryMode
Synopsis
This interface defines constants that represent delivery modes that a
JMS provider can support. NON_PERSISTENT
delivery
implies that a significant failure by the provider before a message
can be delivered will cause the message to be
lost. PERSISTENT
delivery mode implies that the
provider will store message to persistent storage, and that the
messages will survive a crash by the provider. Message senders specify
the delivery mode for a message in its header, using the
Message.setJMSDeliveryMode()
method, and the
provider is responsible for honoring it.
public interface DeliveryMode { // Public Constants public static final int NON_PERSISTENT; // =1 public static final int PERSISTENT; // =2 }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.