Interface ReferenceCounter

    • Method Detail

      • increment

        int increment()
      • decrement

        int decrement()
      • getCount

        int getCount()
      • setTask

        void setTask​(java.lang.Runnable task)
      • getTask

        java.lang.Runnable getTask()
      • check

        void check()
        Some asynchronous operations (like ack) may delay certain conditions. After met, during afterCompletion we may need to recheck certain values to make sure we won't get into a situation where the condition was met asynchronously and queues not removed.