Show / Hide Table of Contents

    Enum AcknowledgementMode

    The mode used to acknowledge messages after they are consumed

    Namespace: Apache.NMS
    Assembly: Apache.NMS.dll
    Syntax
    public enum AcknowledgementMode

    Fields

    Name Description
    AutoAcknowledge

    With this acknowledgment mode, the session will not acknowledge receipt of a message since the broker assumes successful receipt of a message after the onMessage handler has returned without error.

    ClientAcknowledge

    With this acknowledgment mode, the client acknowledges a consumed message by calling the message's acknowledge method. This acknowledgement acknowledges the given message and all unacknowedged messages that have preceeded it for the session in which the message was delivered.

    DupsOkAcknowledge

    With this acknowledgment mode, the session automatically acknowledges a client's receipt of a message either when the session has successfully returned from a call to receive or when the message listener the session has called to process the message successfully returns. Acknowlegements may be delayed in this mode to increase performance at the cost of the message being redelivered this client fails.

    IndividualAcknowledge

    With this acknowledgment mode, the client acknowledges a consumed message by calling the message's acknowledge method. This acknowledgement mode allows the client to acknowledge a single message. This mode is not required to be supported by all NMS providers, however the provider should throw an appropriate exception to indicate that the mode is unsupported.

    Transactional

    Messages will be consumed when the transaction commits.

    Back to top Copyright © 2005-2019 Apache Software Foundation project
    Generated by DocFX