Class TaskIdSupplier

  • All Implemented Interfaces:
    Supplier<Long>

    @ThreadSafe
    @Internal
    public class TaskIdSupplier
    extends Object
    implements Supplier<Long>
    Supplies a new Task ID starting at 1
    • Constructor Detail

      • TaskIdSupplier

        public TaskIdSupplier()
    • Method Detail

      • get

        public Long get()
        Gets then increments the previous value
        Specified by:
        get in interface Supplier<Long>
        Returns:
        id of the Task