Package me.ahoo.cosid.segment
Class StringSegmentId
java.lang.Object
me.ahoo.cosid.StringIdGeneratorDecorator
me.ahoo.cosid.segment.StringSegmentId
- All Implemented Interfaces:
Decorator<IdGenerator>
,IdGenerator
,IdGeneratorDecorator
,SegmentId
,Statistical
,StringIdGenerator
String SegmentId.
-
Field Summary
Fields inherited from class me.ahoo.cosid.StringIdGeneratorDecorator
actual, idConverter
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.ahoo.cosid.StringIdGeneratorDecorator
getActual, idConverter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.ahoo.cosid.IdGenerator
generateAsString, idConverter
Methods inherited from interface me.ahoo.cosid.IdGeneratorDecorator
generate
-
Constructor Details
-
StringSegmentId
-
-
Method Details
-
current
Description copied from interface:SegmentId
Get the current ID segment being used for generation.This method returns the segment from which IDs are currently being allocated. The segment contains the range of available IDs and tracks the current position within that range.
-
stat
Description copied from interface:SegmentId
Get statistical information about this Segment ID generator.This method provides detailed information about the generator's current state, including segment metadata and availability status.
- Specified by:
stat
in interfaceIdGenerator
- Specified by:
stat
in interfaceIdGeneratorDecorator
- Specified by:
stat
in interfaceSegmentId
- Specified by:
stat
in interfaceStatistical
- Returns:
- Statistical information about this Segment ID generator
-