Class TaskIdSupplier

java.lang.Object
com.atlassian.bamboo.task.conversion.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 Details

    • TaskIdSupplier

      public TaskIdSupplier()
  • Method Details

    • get

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