Package com.atlassian.bamboo.core
Class BambooEntityOidServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.core.BambooEntityOidServiceImpl
-
- All Implemented Interfaces:
BambooEntityOidService
@ThreadSafe public class BambooEntityOidServiceImpl extends Object implements BambooEntityOidService
-
-
Constructor Summary
Constructors Constructor Description BambooEntityOidServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BambooEntityOid
nextOid(@NotNull BambooEntityType entityType)
Return the next availableBambooEntityOid
of the given type.void
resetOidPool(@NotNull BambooEntityType entityType)
Reset pool of OIDs of the given entity type for this Bamboo instance's server key.
-
-
-
Method Detail
-
nextOid
@NotNull public @NotNull BambooEntityOid nextOid(@NotNull @NotNull BambooEntityType entityType)
Description copied from interface:BambooEntityOidService
Return the next availableBambooEntityOid
of the given type. Uses this Bamboo instance's server key for generating the OID.- Specified by:
nextOid
in interfaceBambooEntityOidService
- Parameters:
entityType
- type of entity- Returns:
- next available OID for the given type
-
resetOidPool
public void resetOidPool(@NotNull @NotNull BambooEntityType entityType)
Description copied from interface:BambooEntityOidService
Reset pool of OIDs of the given entity type for this Bamboo instance's server key. This method will perform recalculation of next available OID.- Specified by:
resetOidPool
in interfaceBambooEntityOidService
- Parameters:
entityType
- type of entity
-
-