org.apache.activemq.artemis.api.core

## Interface RefCountMessageListener

-     public interface RefCountMessageListener

  If `Message#getContext()` != null and is implementing this interface. These methods will be called during refCount operations

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `durableDown(Message message, int durableCount)`
    `void` | `durableUp(Message message, int durableCount)`
    `void` | `refDown(Message message, int nonDurableCoun)`
    `void` | `refUp(Message message, int nonDurableCoun)`
    `default void` | `usageDown(Message message, int usageCount)`
    `default void` | `usageUp(Message message, int usageCount)`

- - ### Method Detail

    - #### durableUp

          void durableUp(Message message,
                         int durableCount)

    - #### durableDown

          void durableDown(Message message,
                           int durableCount)

    - #### refUp

          void refUp(Message message,
                     int nonDurableCoun)

    - #### refDown

          void refDown(Message message,
                       int nonDurableCoun)

    - #### usageUp

          default void usageUp(Message message,
                               int usageCount)

    - #### usageDown

          default void usageDown(Message message,
                                 int usageCount)

Copyright © 2020 The Apache Software Foundation. All rights reserved.