Interface ReferenceCounter
-
- All Known Implementing Classes:
ReferenceCounterUtil
public interface ReferenceCounter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck()Some asynchronous operations (like ack) may delay certain conditions.intdecrement()intgetCount()java.lang.RunnablegetTask()intincrement()voidsetTask(java.lang.Runnable task)
-
-
-
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.
-
-