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)
com.google.common.base.Optional<java.lang.Long>
allocateId()
long
getAvailableIdCount()
boolean
isIdAvailable(long curTimeSec)
void
refreshDataStore(IdPoolBuilder idPoolBuilder)
-
-
-
Method Detail
-
allocateId
com.google.common.base.Optional<java.lang.Long> allocateId()
-
addId
void addId(long id)
-
isIdAvailable
boolean isIdAvailable(long curTimeSec)
-
getAvailableIdCount
long getAvailableIdCount()
-
refreshDataStore
void refreshDataStore(IdPoolBuilder idPoolBuilder)
-
-