com.atlassian.bamboo.task.conversion
Class TaskIdSupplier
java.lang.Object
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
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 |
TaskIdSupplier
public TaskIdSupplier()
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.