Package me.ahoo.cosid.cosid
Class Radix36CosIdGenerator
java.lang.Object
me.ahoo.cosid.cosid.RadixCosIdGenerator
me.ahoo.cosid.cosid.Radix36CosIdGenerator
- All Implemented Interfaces:
CosIdGenerator
,IdGenerator
,Statistical
,StringIdGenerator
[timestamp(44)]-[machineId-(20)]-[sequence-(16)] = 80 BITS = 17 CHARS.
-
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
ConstructorDescriptionRadix36CosIdGenerator
(int machineId) Radix36CosIdGenerator
(int timestampBit, int machineIdBit, int sequenceBit, int machineId, int sequenceResetThreshold) -
Method Summary
Methods inherited from class me.ahoo.cosid.cosid.RadixCosIdGenerator
generateAsState, generateAsString, 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, idConverter, stat
-
Constructor Details
-
Radix36CosIdGenerator
public Radix36CosIdGenerator(int machineId) -
Radix36CosIdGenerator
public Radix36CosIdGenerator(int timestampBit, int machineIdBit, int sequenceBit, int machineId, int sequenceResetThreshold)
-