activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <>
Subject [jira] [Commented] (ARTEMIS-869) Extend DeliveryMode to add a "LAZY_PERSISTENCE" option
Date Mon, 05 Dec 2016 17:58:59 GMT


Timothy Bish commented on ARTEMIS-869:

void setDeliveryMode(int deliveryMode)
                     throws JMSException

Sets the producer's default delivery mode.

Delivery mode is set to PERSISTENT by default.

    deliveryMode - the message delivery mode for this message producer; legal values are DeliveryMode.NON_PERSISTENT
and DeliveryMode.PERSISTENT
    JMSException - if the JMS provider fails to set the delivery mode due to some internal
See Also:
    getDeliveryMode(), DeliveryMode.NON_PERSISTENT, DeliveryMode.PERSISTENT, Message.DEFAULT_DELIVERY_MODE

> Extend DeliveryMode to add a "LAZY_PERSISTENCE" option
> ------------------------------------------------------
>                 Key: ARTEMIS-869
>                 URL:
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Matt Pavlovich
> Currently the JMS Spec defines two delivery modes-- NON_PERSISTENT and PERSISTENT. Similar
to how the ACK modes have been extended, it would be handy to extend the DeliveryMode to support
a Kafka-like use case where the message should be persisted, but not require a sync() before
being ack'd. 
> Currently, the only way to define this in ActiveMQ 5.x is the periodic option on KahaDB,
which effects all messages. It would be handy to be able to also define it at the per-message
> Ideas on option:

This message was sent by Atlassian JIRA

View raw message