ARTEMIS-1280 removing non used future
This commit is contained in:
parent
99017aaee4
commit
24d0a6c8fe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue