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<java.lang.Long>

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

Supplies a new Task ID starting at 1


Constructor Summary
TaskIdSupplier()
           
 
Method Summary
 java.lang.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 java.lang.Long get()
Gets then increments the previous value

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


Copyright © 2012 Atlassian. All Rights Reserved.