Package me.ahoo.cosid.cosid
Class FriendlyCosIdGenerator
java.lang.Object
me.ahoo.cosid.cosid.RadixCosIdGenerator
me.ahoo.cosid.cosid.FriendlyCosIdGenerator
- All Implemented Interfaces:
CosIdGenerator
,IdGenerator
,Statistical
,StringIdGenerator
-
Field Summary
Fields inherited from class me.ahoo.cosid.cosid.RadixCosIdGenerator
DEFAULT_MACHINE_BIT, DEFAULT_SEQUENCE_BIT, DEFAULT_SEQUENCE_RESET_THRESHOLD, DEFAULT_TIMESTAMP_BIT
-
Constructor Summary
ConstructorsConstructorDescriptionFriendlyCosIdGenerator
(int timestampBit, int machineIdBit, int sequenceBit, int machineId, int sequenceResetThreshold, ZoneId zoneId, boolean padStart) FriendlyCosIdGenerator
(int machineId, ZoneId zoneId, boolean padStart) -
Method Summary
Methods inherited from class me.ahoo.cosid.cosid.RadixCosIdGenerator
generateAsState, getLastTimestamp, getMachineId, getStateParser
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.cosid.CosIdGenerator
generate, generateAsString, idConverter, stat
-
Constructor Details
-
FriendlyCosIdGenerator
-
FriendlyCosIdGenerator
public FriendlyCosIdGenerator(int timestampBit, int machineIdBit, int sequenceBit, int machineId, int sequenceResetThreshold, ZoneId zoneId, boolean padStart)
-