Interface IdHolder
-
- All Known Implementing Classes:
AvailableIdHolder
,ReleasedIdHolder
public interface IdHolder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addId(long id)
java.util.Optional<java.lang.Long>
allocateId()
long
getAvailableIdCount()
boolean
isIdAvailable(long curTimeSec)
void
refreshDataStore(IdPoolBuilder idPoolBuilder)
-
-
-
Method Detail
-
allocateId
java.util.Optional<java.lang.Long> allocateId()
-
addId
void addId(long id)
-
isIdAvailable
boolean isIdAvailable(long curTimeSec)
-
getAvailableIdCount
long getAvailableIdCount()
-
refreshDataStore
void refreshDataStore(IdPoolBuilder idPoolBuilder)
-
-