com.atlassian.bamboo.task.conversion
Class TaskIdSupplier

java.lang.Object
  extended by com.atlassian.bamboo.task.conversion.TaskIdSupplier
All Implemented Interfaces:
com.atlassian.util.concurrent.Supplier<Long>

@ThreadSafe
@Internal
public class TaskIdSupplier
extends Object
implements com.atlassian.util.concurrent.Supplier<Long>

Supplies a new Task ID starting at 1


Constructor Summary
TaskIdSupplier()
           
 
Method Summary
 Long get()
          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 Detail

TaskIdSupplier

public TaskIdSupplier()
Method Detail

get

public Long get()
Gets then increments the previous value

Specified by:
get in interface com.atlassian.util.concurrent.Supplier<Long>
Returns:
id of the Task


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.