Class CountingTask<V>
- java.lang.Object
-
- de.dytanic.cloudnet.common.concurrent.CompletableTask<V>
-
- de.dytanic.cloudnet.common.concurrent.CountingTask<V>
-
- All Implemented Interfaces:
ITask<V>,java.util.concurrent.Callable<V>,java.util.concurrent.Future<V>
public class CountingTask<V> extends CompletableTask<V>
-
-
Constructor Summary
Constructors Constructor Description CountingTask(V value, int initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountDown()voidcountUp()intcountValue()-
Methods inherited from class de.dytanic.cloudnet.common.concurrent.CompletableTask
addListener, call, cancel, clearListeners, complete, fail, get, get, get, getCallable, getDef, getListeners, isCancelled, isDone, mapFrom, mapThrowable, supplyAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.common.concurrent.ITask
addListener, fireExceptionOnFailure, map, onCancelled, onComplete, onComplete, onFailure, onFailure
-
-
-
-
Constructor Detail
-
CountingTask
public CountingTask(V value, int initialValue)
-
-