- All Implemented Interfaces:
Supplier<Long>
@ThreadSafe
@Internal
public class TaskIdSupplier
extends Object
implements Supplier<Long>
Supplies a new Task ID starting at 1
-
Constructor Summary
Constructors
-
Method Summary
Gets then increments the previous value
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TaskIdSupplier
public TaskIdSupplier()
-
Method Details
-
get
Gets then increments the previous value
- Specified by:
get
in interface Supplier<Long>
- Returns:
- id of the Task