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
-
Method Summary
Modifier and TypeMethodDescription@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.
-
Constructor Details
-
BambooEntityOidServiceImpl
public BambooEntityOidServiceImpl()
-
-
Method Details
-
nextOid
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
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
-