ARTEMIS-1280 removing non used future

This commit is contained in:
Clebert Suconic 2017-07-11 15:10:53 -04:00
parent 99017aaee4
commit 24d0a6c8fe
1 changed files with 0 additions and 10 deletions

View File

@ -207,8 +207,6 @@ public class QueueImpl implements Queue {
private ScheduledFuture<?> redistributorFuture;
private ScheduledFuture<?> checkQueueSizeFuture;
// We cache the consumers here since we don't want to include the redistributor
private final AtomicInteger consumersCount = new AtomicInteger();
@ -724,10 +722,6 @@ public class QueueImpl implements Queue {
@Override
public void close() throws Exception {
if (checkQueueSizeFuture != null) {
checkQueueSizeFuture.cancel(false);
}
getExecutor().execute(new Runnable() {
@Override
public void run() {
@ -913,10 +907,6 @@ public class QueueImpl implements Queue {
@Override
protected void finalize() throws Throwable {
if (checkQueueSizeFuture != null) {
checkQueueSizeFuture.cancel(false);
}
cancelRedistributor();
super.finalize();