activemq-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/ARTEMIS-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15722883#comment-15722883
] 

Timothy Bish commented on ARTEMIS-869:
--------------------------------------

{noformat}
void setDeliveryMode(int deliveryMode)
                     throws JMSException

Sets the producer's default delivery mode.

Delivery mode is set to PERSISTENT by default.

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

> Extend DeliveryMode to add a "LAZY_PERSISTENCE" option
> ------------------------------------------------------
>
>                 Key: ARTEMIS-869
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-869
>             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
level
> Ideas on option:
> ActiveMQDeliveryMode.LAZY_PERSISTENCE



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message