Package me.ahoo.cosid.segment.grouped
Interface GroupedIdSegmentDistributor
- All Superinterfaces:
Grouped,IdSegmentDistributor
- All Known Implementing Classes:
DefaultGroupedIdSegmentDistributor,DefaultGroupedIdSegmentDistributor.GroupedBinding
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.ahoo.cosid.segment.IdSegmentDistributor
IdSegmentDistributor.Atomic, IdSegmentDistributor.Mock -
Field Summary
Fields inherited from interface me.ahoo.cosid.segment.IdSegmentDistributor
DEFAULT_OFFSET, DEFAULT_SEGMENTS, DEFAULT_STEP -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck if this distributor allows segment resetting.Methods inherited from interface me.ahoo.cosid.segment.IdSegmentDistributor
getName, getNamespace, getNamespacedName, getStep, getStep, nextIdSegment, nextIdSegment, nextIdSegment, nextIdSegmentChain, nextIdSegmentChain, nextMaxId, nextMaxId
-
Method Details
-
allowReset
default boolean allowReset()Description copied from interface:IdSegmentDistributorCheck if this distributor allows segment resetting.Some distributors support resetting to earlier segments, while others only move forward to prevent ID conflicts.
- Specified by:
allowResetin interfaceIdSegmentDistributor- Returns:
trueif resetting is allowed,falseotherwise
-