public class ReferenceCounterUtil extends Object implements ReferenceCounter
Constructor and Description |
---|
ReferenceCounterUtil() |
ReferenceCounterUtil(Executor executor) |
ReferenceCounterUtil(Runnable runnable) |
ReferenceCounterUtil(Runnable runnable,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
check()
Some asynchronous operations (like ack) may delay certain conditions.
|
int |
decrement() |
int |
getCount() |
Runnable |
getTask() |
int |
increment() |
void |
setTask(Runnable task) |
public ReferenceCounterUtil()
public ReferenceCounterUtil(Executor executor)
public ReferenceCounterUtil(Runnable runnable)
public void setTask(Runnable task)
setTask
in interface ReferenceCounter
public Runnable getTask()
getTask
in interface ReferenceCounter
public int increment()
increment
in interface ReferenceCounter
public int decrement()
decrement
in interface ReferenceCounter
public void check()
ReferenceCounter
check
in interface ReferenceCounter
public int getCount()
getCount
in interface ReferenceCounter
Copyright © 2020 JBoss by Red Hat. All rights reserved.