Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractDateGroupBySupplier<D extends TemporalAccessor> - Class in me.ahoo.cosid.segment.grouped.date
-
Abstract base class for date-based group key suppliers.
- AbstractDateGroupBySupplier(DateTimeFormatter) - Constructor for class me.ahoo.cosid.segment.grouped.date.AbstractDateGroupBySupplier
-
Creates a supplier with the specified formatter.
- AbstractIdMetadata - Class in me.ahoo.cosid.accessor
-
Abstract base implementation of
IdMetadata. - AbstractIdMetadata(IdDefinition) - Constructor for class me.ahoo.cosid.accessor.AbstractIdMetadata
-
Creates an instance with the given ID definition, resolving generators from
DefaultIdGeneratorProvider.INSTANCE. - AbstractIdMetadata(IdDefinition, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.accessor.AbstractIdMetadata
-
Creates an instance with the given ID definition and provider.
- AbstractIdSegmentDistributor - Class in me.ahoo.cosid.segment
-
Base of the
IdSegmentDistributors: common properties and one rollback rule for every backend. - AbstractIdSegmentDistributor(String, String, long) - Constructor for class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
- AbstractMachineIdDistributor - Class in me.ahoo.cosid.machine
-
Abstract MachineIdDistributor.
- AbstractMachineIdDistributor(MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- AbstractSnowflakeId - Class in me.ahoo.cosid.snowflake
-
Abstract SnowflakeId implementation.
- AbstractSnowflakeId(long, int, int, int, int, long) - Constructor for class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Creates a new AbstractSnowflakeId.
- acquire(String, InstanceId, int, Duration) - Method in class me.ahoo.cosid.machine.lease.MachineLeaseManager
-
Take a machine id for the instance.
- ActivitiIdGenerator - Class in me.ahoo.cosid.activiti
-
Activiti IdGenerator Based on CosId.
- ActivitiIdGenerator() - Constructor for class me.ahoo.cosid.activiti.ActivitiIdGenerator
-
Creates a generator that resolves from
DefaultIdGeneratorProvider.INSTANCE. - ActivitiIdGenerator(String, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.activiti.ActivitiIdGenerator
-
Creates a generator that resolves the named generator from the given provider.
- ActivitiIdGenerator(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.activiti.ActivitiIdGenerator
-
Creates a generator that resolves the generator named by the
ActivitiIdGenerator.ID_KEYsystem property (defaultIdGeneratorProvider.SHARE) from the given provider. - ActivitiIdGeneratorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.activiti
-
Activiti IdGenerator Auto Configuration.
- ActivitiIdGeneratorAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.activiti.ActivitiIdGeneratorAutoConfiguration
- actual - Variable in class me.ahoo.cosid.IntegerIdGenerator
-
The actual ID generator that produces long IDs.
- actual - Variable in class me.ahoo.cosid.StringIdGeneratorDecorator
-
The actual ID generator being decorated.
- actual - Variable in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- add(int, E) - Method in class me.ahoo.cosid.sharding.ExactCollection
- ADD_LEASE_COLUMNS_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
-
Migration of a
cosid_machinetable created before 4.0 (MySQL syntax). - ADD_LEASE_COLUMNS_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
-
Migration of a
cosid_machinetable created before 4.0, for the lease columns ofJdbcMachineLeaseStore. - ADD_STABLE_COLUMN_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
-
Migration of a table created before the
stablecolumn existed (MySQL syntax). - ADD_STABLE_COLUMN_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
-
Migration of a
cosid_machinetable created before thestablecolumn existed. - addAll(Collection<? extends E>) - Method in class me.ahoo.cosid.sharding.ExactCollection
- affinity() - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Gets the affinity key for worker assignment.
- AffinityJob - Interface in me.ahoo.cosid.segment.concurrent
-
Job with affinity for prefetch worker assignment.
- afterPropertiesSet() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
Segment ids a customizer added have no bean definition: they are only registered in the provider, here.
- afterPropertiesSet() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
Snowflake ids a customizer added have no bean definition: they are only registered in the provider, here.
- allowReset() - Method in interface me.ahoo.cosid.segment.grouped.GroupedIdSegmentDistributor
- allowReset() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Check if this distributor allows segment resetting.
- annotationDefinitionParser() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Provides the annotation-based field definition parser with highest precedence.
- AnnotationDefinitionParser - Class in me.ahoo.cosid.annotation
-
Parses
CosIdannotations to createIdDefinition. - AnnotationDefinitionParser() - Constructor for class me.ahoo.cosid.annotation.AnnotationDefinitionParser
- asFriendlyId(boolean) - Method in class me.ahoo.cosid.provider.LazyIdGenerator
-
Gets this generator as a SnowflakeFriendlyId.
- asLong(String) - Method in class me.ahoo.cosid.converter.DatePrefixIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.PrefixIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.RadixIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.SuffixIdConverter
- asLong(String) - Method in class me.ahoo.cosid.converter.ToStringIdConverter
- asLong(String) - Method in interface me.ahoo.cosid.IdConverter
-
Convert a
Stringtype ID back to itslongrepresentation. - asSegmentId(boolean) - Method in class me.ahoo.cosid.provider.LazyIdGenerator
-
Gets this generator as a SegmentId.
- Assert - Class in me.ahoo.cosid.test
-
Assert .
- Assert() - Constructor for class me.ahoo.cosid.test.Assert
- Assert.Executable - Interface in me.ahoo.cosid.test
- assertGlobalEach(long, long) - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- assertGlobalEach(String, String) - Method in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- assertGlobalFirst(long) - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- assertGlobalLast(long) - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- assertSingleEach(long, long) - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- assertSingleEach(String, String) - Method in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- assertThrows(Class<T>, Assert.Executable) - Static method in class me.ahoo.cosid.test.Assert
- asSnowflakeId(boolean) - Method in class me.ahoo.cosid.provider.LazyIdGenerator
-
Gets this generator as a SnowflakeId.
- asState(String) - Method in interface me.ahoo.cosid.cosid.CosIdIdStateParser
-
Parses a string representation into a CosIdState.
- asState(String) - Method in class me.ahoo.cosid.cosid.FriendlyIdStateParser
- asState(String) - Method in class me.ahoo.cosid.cosid.RadixCosIdStateParser
- asString(long) - Method in class me.ahoo.cosid.converter.DatePrefixIdConverter
- asString(long) - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
-
Not supported: the group is not known from the id alone.
- asString(long) - Method in class me.ahoo.cosid.converter.PrefixIdConverter
- asString(long) - Method in class me.ahoo.cosid.converter.RadixIdConverter
- asString(long) - Method in class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
- asString(long) - Method in class me.ahoo.cosid.converter.SuffixIdConverter
- asString(long) - Method in class me.ahoo.cosid.converter.ToStringIdConverter
- asString(long) - Method in interface me.ahoo.cosid.IdConverter
-
Convert a
longtype ID to itsStringrepresentation. - asString(long, int, int) - Method in interface me.ahoo.cosid.cosid.CosIdIdStateParser
-
Converts timestamp, machineId, and sequence to a string.
- asString(long, int, int) - Method in class me.ahoo.cosid.cosid.FriendlyIdStateParser
- asString(long, int, int) - Method in class me.ahoo.cosid.cosid.RadixCosIdStateParser
- asString(long, GroupedKey) - Method in class me.ahoo.cosid.converter.DatePrefixIdConverter
- asString(long, GroupedKey) - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
-
Prefix the id with the key of
group. - asString(long, GroupedKey) - Method in class me.ahoo.cosid.converter.PrefixIdConverter
- asString(long, GroupedKey) - Method in class me.ahoo.cosid.converter.SuffixIdConverter
- asString(long, GroupedKey) - Method in interface me.ahoo.cosid.IdConverter
-
Convert an id from a segment of
groupto itsStringrepresentation. - asString(GroupedId) - Method in interface me.ahoo.cosid.IdConverter
- asString(CosIdState) - Method in interface me.ahoo.cosid.cosid.CosIdIdStateParser
-
Converts a CosIdState to its string representation.
- asString(CosIdState) - Method in class me.ahoo.cosid.cosid.RadixCosIdStateParser
- AsString - Annotation Interface in me.ahoo.cosid.jackson
-
The AsString annotation defines how to convert IDs.
- AsString.Type - Enum Class in me.ahoo.cosid.jackson
- AsStringDeserializer - Class in me.ahoo.cosid.jackson
-
AsString Deserializer.
- AsStringDeserializer() - Constructor for class me.ahoo.cosid.jackson.AsStringDeserializer
- AsStringDeserializer(IdConverter) - Constructor for class me.ahoo.cosid.jackson.AsStringDeserializer
- AsStringSerializer - Class in me.ahoo.cosid.jackson
-
AsString Serializer.
- AsStringSerializer() - Constructor for class me.ahoo.cosid.jackson.AsStringSerializer
- AsStringSerializer(IdConverter) - Constructor for class me.ahoo.cosid.jackson.AsStringSerializer
- AtomicIdSegmentDistributor - Class in me.ahoo.cosid.test.segment
-
In-memory
IdSegmentDistributorfor tests and benchmarks (moved fromIdSegmentDistributor.Atomicin 4.0). - AtomicIdSegmentDistributor() - Constructor for class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Create a new Atomic distributor with default step size.
- AtomicIdSegmentDistributor(long) - Constructor for class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Create a new Atomic distributor with custom step size.
- AtomicLongGenerator - Class in me.ahoo.cosid.jvm
-
AtomicLong-based ID generator.
- AtomicLongGenerator() - Constructor for class me.ahoo.cosid.jvm.AtomicLongGenerator
- availableType(Class<?>) - Static method in interface me.ahoo.cosid.accessor.CosIdAccessor
-
Check if the specified ID type is supported by CosId.
B
- BAD_REQUEST - Static variable in class me.ahoo.cosid.proxy.api.ErrorResponse
- badRequest(String, List<?>) - Static method in class me.ahoo.cosid.proxy.api.ErrorResponse
- badRequest(String) - Static method in class me.ahoo.cosid.proxy.api.ErrorResponse
- badRequest(List<?>) - Static method in class me.ahoo.cosid.proxy.api.ErrorResponse
- BASE_URL - Static variable in interface me.ahoo.cosid.proxy.api.MachineClient
- BASE_URL - Static variable in interface me.ahoo.cosid.proxy.api.MachineLeaseClient
- BEAN_NAME - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
The bean name, the factory bean of the
{name}SegmentIdbean definitions. - BEAN_NAME - Static variable in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
The bean name, the factory bean of the
{name}SnowflakeIdbean definitions. - beanName(String) - Static method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
The bean name of the segment id
name. - beanName(String) - Static method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
The bean name of the snowflake id
name. - bind(IdGeneratorProvider) - Static method in class me.ahoo.cosid.axon.CosIdIdentifierFactory
-
Binds a provider for factories created without an explicit provider; the most recent binding wins.
- build() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Builds the SnowflakeIdState instance.
- builder() - Static method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Creates a new builder for SnowflakeIdState.
- BuiltInStoreProvider - Class in me.ahoo.cosid.spring.boot.starter.store
-
A provider registered by one of the starter's own auto-configurations.
C
- CACHE - Static variable in interface me.ahoo.cosid.util.Clock
- CacheClock(Clock) - Constructor for class me.ahoo.cosid.util.Clock.CacheClock
- CachedSharding<T extends Comparable<?>> - Class in me.ahoo.cosid.sharding
-
Caching wrapper for sharding algorithms.
- CachedSharding(Sharding<T>) - Constructor for class me.ahoo.cosid.sharding.CachedSharding
-
Creates a cached wrapper around the specified sharding algorithm.
- call(String, Callable<T>) - Method in class me.ahoo.cosid.util.CallTimeout
-
Run a call within the timeout.
- call(String, Callable<T>, BiFunction<String, TimeoutException, ? extends RuntimeException>) - Method in class me.ahoo.cosid.util.CallTimeout
-
Run a call within the timeout, throwing the exception created by
timeoutExceptionFactoryon timeout. - call(String, Supplier<T>) - Method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
-
Run a Redis command within the timeout.
- CallTimeout - Class in me.ahoo.cosid.util
-
Bounds how long a caller waits for a blocking backend call that has no timeout of its own.
- cancel(AffinityJob) - Method in class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
- cancel(AffinityJob) - Method in interface me.ahoo.cosid.segment.concurrent.PrefetchWorker
-
Cancels a prefetch job.
- capitalize(String) - Static method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
-
Capitalizes a string (first character upper case).
- Chain() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Constructs a new Chain configuration with default prefetch worker.
- CHAIN - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Mode
-
Chain mode that uses a chain of segments with prefetching for better performance.
- checkArgument(boolean) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks an argument.
- checkArgument(boolean, String, long) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks an argument without boxing or allocating when it holds: for hot paths.
- checkArgument(boolean, String, long, long) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks an argument without boxing or allocating when it holds: for hot paths.
- checkArgument(boolean, String, Object...) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks an argument.
- checkArgument(boolean, String, Object, Object) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks an argument without allocating an array when it holds: for hot paths.
- checkGeneratorSupportsIdType(boolean) - Method in class me.ahoo.cosid.accessor.AbstractIdMetadata
-
Checks that the ID generator, if it is already registered (or, with
required, always), can generate the type of the id field: alongorintfield needs anIdGenerator, not a generator of string ids only. - checkNotNull(T) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks that a reference is not null.
- checkNotNull(T, String, Object...) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks that a reference is not null.
- Checks - Class in me.ahoo.cosid.internal
-
Argument, state and null checks, and the small string helpers they need, without Guava.
- checkState(boolean, String, Object...) - Static method in class me.ahoo.cosid.internal.Checks
-
Checks a state.
- claim(String, String, ClaimRequest) - Method in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
-
Claim a machine id:
kindisMachineLeaseApi.SELF,MachineLeaseApi.RELEASED,MachineLeaseApi.NEWorMachineLeaseApi.EXPIRED. - claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- claimExpired(String, InstanceId, int, long, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Take over a machine id whose owner has not renewed it since
expiredBefore. - claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- claimExpired(String, InstanceId, int, long, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- claimExpiredSkipsFreshAndStableLeases() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- claimNew(String, InstanceId, int, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Take the next machine id that was never used in the namespace.
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- claimNew(String, InstanceId, int, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- claimNewTakesSequentialMachineIdsUntilFull() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- claimReleased(String, InstanceId, int, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Take a machine id that a non-stable instance released on shutdown.
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- claimReleased(String, InstanceId, int, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- ClaimRequest - Record Class in me.ahoo.cosid.proxy.api
-
A claim of a machine id lease: the arguments of the
MachineLeaseStoreclaims. - ClaimRequest(String, boolean, long, int, long) - Constructor for record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Creates an instance of a
ClaimRequestrecord class. - claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- claimSelf(String, InstanceId, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Take back the lease this instance already holds, renewing it to
now, whether or not it has expired. - claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- claimSelf(String, InstanceId, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- claimSelfRacingClaimExpiredHasOneWinner() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- claimSelfTakesBackOwnLeaseRenewed() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- claimsRespectMaxMachineId() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- clear() - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- clear() - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Clear all registered ID generators.
- clear() - Method in class me.ahoo.cosid.sharding.ExactCollection
- clear(String) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- clear(String) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- clear(String) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Clears all machine states for a given namespace.
- Clock - Interface in me.ahoo.cosid.util
-
System.currentTimeMillis()is too slow. - Clock.CacheClock - Class in me.ahoo.cosid.util
-
Fix the problem that
System.currentTimeMillis()is too slow. - Clock.SystemClock - Class in me.ahoo.cosid.util
- ClockBackwards() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.ClockBackwards
- ClockBackwardsException - Exception in me.ahoo.cosid.snowflake.exception
-
Exception thrown when system clock moves backwards.
- ClockBackwardsException(long, long) - Constructor for exception me.ahoo.cosid.snowflake.exception.ClockBackwardsException
-
Creates a new exception.
- clockBackwardsSynchronizer() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- ClockBackwardsSynchronizer - Interface in me.ahoo.cosid.machine
-
Synchronizer for handling clock backwards issues in Snowflake ID generation.
- ClockSyncCosIdGenerator - Class in me.ahoo.cosid.cosid
-
ClockSync
CosIdGenerator. - ClockSyncCosIdGenerator(CosIdGenerator) - Constructor for class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- ClockSyncCosIdGenerator(CosIdGenerator, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- ClockSyncSnowflakeId - Class in me.ahoo.cosid.snowflake
-
Clock Sync SnowflakeId.
- ClockSyncSnowflakeId(SnowflakeId) - Constructor for class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- ClockSyncSnowflakeId(SnowflakeId, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- ClockTooManyBackwardsException - Exception in me.ahoo.cosid.snowflake.exception
-
Exception thrown when clock backwards exceeds threshold.
- ClockTooManyBackwardsException(long, long, long) - Constructor for exception me.ahoo.cosid.snowflake.exception.ClockTooManyBackwardsException
-
Creates a new exception.
- close() - Method in class me.ahoo.cosid.segment.SegmentChainId
-
Stop prefetching segments in the background.
- close() - Method in class me.ahoo.cosid.segment.StringSegmentId
-
Close the decorated segment id when it is
AutoCloseable, such as aSegmentChainId. - COLLECTION_NAME - Static variable in interface me.ahoo.cosid.mongo.IdSegmentCollection
- COLLECTION_NAME - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
-
The collection of machine id leases.
- compareTo(CosIdState) - Method in class me.ahoo.cosid.cosid.CosIdState
- compareTo(IdSegment) - Method in interface me.ahoo.cosid.segment.IdSegment
-
Compare this segment to another segment based on offset.
- compareTo(SnowflakeIdState) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Compares this state to another by raw ID value.
- compositeFieldDefinitionParser(List<FieldDefinitionParser>) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Creates a composite field definition parser that combines multiple parsers.
- CompositeFieldDefinitionParser - Class in me.ahoo.cosid.accessor.parser
-
Composite parser that tries multiple parsers in sequence.
- CompositeFieldDefinitionParser(List<FieldDefinitionParser>) - Constructor for class me.ahoo.cosid.accessor.parser.CompositeFieldDefinitionParser
-
Creates a composite parser with the specified parsers.
- concurrentClaimersOfAsManyExpiredIdsAllSucceed() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- concurrentClaimersOfAsManyReleasedIdsAllSucceed() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- concurrentClaimExpiredHasOneWinner() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- concurrentClaimNewHandsOutDistinctMachineIds() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- concurrentClaimReleasedHasOneWinner() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- ConcurrentGenerateSpec - Class in me.ahoo.cosid.test
-
Concurrent Generate Spec .
- ConcurrentGenerateSpec(int, long, Duration, IdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateSpec
- ConcurrentGenerateSpec(int, long, IdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateSpec
- ConcurrentGenerateSpec(IdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateSpec
- ConcurrentGenerateStingSpec - Class in me.ahoo.cosid.test
-
Concurrent Generate String ID Spec .
- ConcurrentGenerateStingSpec(int, long, Duration, StringIdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- ConcurrentGenerateStingSpec(int, long, StringIdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- ConcurrentGenerateStingSpec(StringIdGenerator...) - Constructor for class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- concurrentRenewOfOneVersionHasOneWinner() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- ConditionalOnBuiltInMachineStore - Annotation Interface in me.ahoo.cosid.spring.boot.starter.store
-
On a built-in machine backend bean: create it unless the application selects a
CosIdStoreProviderof its own. - ConditionalOnBuiltInSegmentStore - Annotation Interface in me.ahoo.cosid.spring.boot.starter.store
-
On a built-in segment backend bean: create it unless the application selects a
CosIdStoreProviderof its own. - ConditionalOnCosIdEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter
-
Conditional annotation that enables beans when CosId is enabled.
- ConditionalOnCosIdGeneratorEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.cosid
-
Conditional On CosId Enabled.
- ConditionalOnCosIdMachineEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.machine
-
ConditionalOnCosIdSnowflakeEnabled.
- ConditionalOnCosIdMybatisEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.mybatis
-
Conditional On CosId Mybatis Enabled.
- ConditionalOnCosIdSegmentEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.segment
-
Conditional On CosId SegmentEnabled.
- ConditionalOnCosIdSnowflakeEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.snowflake
-
ConditionalOnCosIdSnowflakeEnabled.
- ConditionalOnCosIdZookeeperEnabled - Annotation Interface in me.ahoo.cosid.spring.boot.starter.zookeeper
-
Conditional On CosId Zookeeper Enabled.
- ConditionalOnMachineStoreType - Annotation Interface in me.ahoo.cosid.spring.boot.starter.store
-
Matches when
cosid.machine.distributor.typeisConditionalOnMachineStoreType.value(), compared asStoreTypesdo. - ConditionalOnSegmentStoreType - Annotation Interface in me.ahoo.cosid.spring.boot.starter.store
-
Matches when
cosid.segment.distributor.typeisConditionalOnSegmentStoreType.value(), compared asStoreTypesdo. - Connection(String, String, String) - Constructor for record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Creates an instance of a
Connectionrecord class. - Connection(String, String, String) - Constructor for record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Creates an instance of a
Connectionrecord class. - CONNECTION_STRING_ENV - Static variable in class me.ahoo.cosid.test.container.MongoLauncher
- CONNECTION_STRING_PROPERTY - Static variable in class me.ahoo.cosid.test.container.MongoLauncher
- contains(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
- contains(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
-
Checks if the given time is within the effective interval.
- converterDefinition - Variable in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- CosId - Class in me.ahoo.cosid
-
CosId constants and configuration values.
- CosId - Annotation Interface in me.ahoo.cosid.annotation
-
Annotation to mark fields or classes for CosId.
- COSID - Static variable in class me.ahoo.cosid.CosId
-
The base name for CosId components and configuration properties.
- COSID_EPOCH - Static variable in class me.ahoo.cosid.CosId
-
COSID_EPOCH in milliseconds: 1577203200000.
- COSID_EPOCH_DATE - Static variable in class me.ahoo.cosid.CosId
-
UTC EPOCH DATE of CosId.
- COSID_EPOCH_SECOND - Static variable in class me.ahoo.cosid.CosId
-
COSID_EPOCH in seconds: 1577203200.
- COSID_PREFIX - Static variable in class me.ahoo.cosid.CosId
-
The prefix used for CosId-related configuration properties.
- CosIdAccessor - Interface in me.ahoo.cosid.accessor
-
CosId accessor for automatic ID injection into objects.
- CosIdAccessor.NotFound - Class in me.ahoo.cosid.accessor
-
Sentinel implementation representing a "not found" accessor.
- cosIdAccessorParser(FieldDefinitionParser, IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Provides the default CosId accessor parser for runtime field access.
- CosIdAccessorParser - Interface in me.ahoo.cosid.accessor.parser
-
Parser for creating
CosIdAccessorfrom classes. - cosIdAccessorRegistry(CosIdAccessorParser) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Provides the default CosId accessor registry for managing field accessors.
- CosIdAccessorRegistry - Interface in me.ahoo.cosid.accessor.registry
-
Registry for managing
CosIdAccessorinstances. - cosIdAccessorRegistryValidator(CosIdAccessorRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Validates the registered accessors once every singleton, and so every ID generator, is created: a
longorint@CosIdfield bound to a generator of string ids only fails startup. - cosidActivitiProcessEngineConfigurationConfigurer(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.activiti.ActivitiIdGeneratorAutoConfiguration
- CosIdAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter
-
Main auto-configuration class for CosId, providing core beans for ID generation and accessor management.
- CosIdAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
- CosIdAxonAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.axon
-
Binds the application context's
IdGeneratorProviderto Axon'sCosIdIdentifierFactory. - CosIdAxonAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.axon.CosIdAxonAutoConfiguration
- CosIdAxonAutoConfiguration.CosIdAxonProviderBinding - Class in me.ahoo.cosid.spring.boot.starter.axon
-
Keeps
CosIdIdentifierFactorybound to a provider for the lifetime of the bean. - cosIdAxonProviderBinding(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.axon.CosIdAxonAutoConfiguration
- CosIdAxonProviderBinding(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.spring.boot.starter.axon.CosIdAxonAutoConfiguration.CosIdAxonProviderBinding
- cosIdBeforeConvertCallback(CosIdAccessorRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcAutoConfiguration
- CosIdBeforeConvertCallback - Class in me.ahoo.cosid.spring.data.jdbc
- CosIdBeforeConvertCallback(CosIdAccessorRegistry) - Constructor for class me.ahoo.cosid.spring.data.jdbc.CosIdBeforeConvertCallback
- cosidCuratorFramework(CosIdZookeeperProperties, RetryPolicy) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperAutoConfiguration
- cosIdEndpoint(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
- CosIdEndpoint - Class in me.ahoo.cosid.spring.boot.starter.actuate
-
The
cosidendpoint with its read operations and a delete operation that removes an id generator at runtime. - CosIdEndpoint(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpoint
- CosIdEndpointAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.actuate
- CosIdEndpointAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
- CosIdException - Exception in me.ahoo.cosid
-
CosId root exception for all CosId-related errors.
- CosIdException() - Constructor for exception me.ahoo.cosid.CosIdException
-
Constructs a new CosId exception with no detail message.
- CosIdException(String) - Constructor for exception me.ahoo.cosid.CosIdException
-
Constructs a new CosId exception with the specified detail message.
- CosIdException(String, Throwable) - Constructor for exception me.ahoo.cosid.CosIdException
-
Constructs a new CosId exception with the specified detail message and cause.
- CosIdException(String, Throwable, boolean, boolean) - Constructor for exception me.ahoo.cosid.CosIdException
-
Constructs a new CosId exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
- CosIdException(Throwable) - Constructor for exception me.ahoo.cosid.CosIdException
-
Constructs a new CosId exception with the specified cause.
- cosidFlowableEngineConfigurationConfigurer(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.flowable.FlowableIdGeneratorAutoConfiguration
- cosIdGenerator(GuardDistribute, InstanceId, IdGeneratorProvider, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorAutoConfiguration
-
Creates and configures the primary CosId generator bean.
- CosIdGenerator - Interface in me.ahoo.cosid.cosid
-
CosId algorithm ID generator.
- CosIdGeneratorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.cosid
-
Auto-configuration class for CosId generators in Spring Boot applications.
- CosIdGeneratorAutoConfiguration(CosIdProperties, MachineProperties, CosIdGeneratorProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorAutoConfiguration
-
Constructs a new CosIdGeneratorAutoConfiguration with the required properties.
- cosIdGeneratorEndpoint(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
- CosIdGeneratorEndpoint - Class in me.ahoo.cosid.spring.boot.starter.actuate
- CosIdGeneratorEndpoint(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.spring.boot.starter.actuate.CosIdGeneratorEndpoint
- CosIdGeneratorProperties - Class in me.ahoo.cosid.spring.boot.starter.cosid
-
Configuration properties for CosId generators in Spring Boot applications.
- CosIdGeneratorProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
- CosIdGeneratorProperties.Type - Enum Class in me.ahoo.cosid.spring.boot.starter.cosid
-
Enumeration of supported CosId generator types.
- CosIdGeneratorStat - Class in me.ahoo.cosid.stat.generator
-
CosId generator stat with machine and timestamp info.
- CosIdGeneratorStat() - Constructor for class me.ahoo.cosid.stat.generator.CosIdGeneratorStat
- CosIdGetter - Interface in me.ahoo.cosid.accessor
-
Interface for getting the ID value from an object.
- CosIdHostNameAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
- CosIdHostNameAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdHostNameAutoConfiguration
- CosIdIdentifierFactory - Class in me.ahoo.cosid.axon
-
CosId Identifier Factory .
- CosIdIdentifierFactory() - Constructor for class me.ahoo.cosid.axon.CosIdIdentifierFactory
-
Creates a factory that resolves from the bound provider, or
DefaultIdGeneratorProvider.INSTANCE. - CosIdIdentifierFactory(String, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.axon.CosIdIdentifierFactory
-
Creates a factory that resolves the named generator from the given provider.
- CosIdIdentifierFactory(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.axon.CosIdIdentifierFactory
-
Creates a factory that always resolves from the given provider.
- cosIdIdSegmentDistributorFactory(Environment, SegmentIdProperties, ObjectProvider<CosIdStoreProvider>) - Method in class me.ahoo.cosid.spring.boot.starter.store.CosIdSegmentStoreAutoConfiguration
- CosIdIdStateParser - Interface in me.ahoo.cosid.cosid
-
Parser for converting
CosIdStateto String and vice versa. - CosIdJdbcAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.jdbc
-
CosId Mybatis AutoConfiguration.
- CosIdJdbcAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcAutoConfiguration
- CosIdJdbcDisabledHintAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.jdbc
-
With the Spring Data JDBC integration off (the 4.0 default), says once at startup which Spring Data JDBC entities have an
@Idproperty orCosIdfields that CosId would fill with the integration on. - CosIdJdbcDisabledHintAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcDisabledHintAutoConfiguration
- cosIdJdbcEntityAccessorRegistrar(ObjectProvider<RelationalMappingContext>, CosIdAccessorRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcAutoConfiguration
-
Registers the accessors of every Spring Data JDBC entity once every singleton, and so every ID generator, is created, so a
longorintid field bound to a generator of string ids only fails startup instead of the first insert. - CosIdJdbcMachineIdDistributorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
CosId Jdbc MachineIdDistributor AutoConfiguration.
- CosIdJdbcMachineIdDistributorAutoConfiguration(MachineProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdJdbcMachineIdDistributorAutoConfiguration
- cosIdJdbcMachineStoreProvider(ObjectProvider<JdbcMachineLeaseStore>, ObjectProvider<JdbcMachineIdInitializer>, ObjectProvider<DataSource>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdJdbcMachineIdDistributorAutoConfiguration
-
The JDBC backend for
CosIdStoreProviderselection. - CosIdJdbcSegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Jdbc Segment AutoConfiguration.
- CosIdJdbcSegmentAutoConfiguration(SegmentIdProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdJdbcSegmentAutoConfiguration
- cosIdJdbcSegmentStoreProvider(ObjectProvider<DataSource>, ObjectProvider<JdbcIdSegmentInitializer>) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdJdbcSegmentAutoConfiguration
-
The JDBC backend for
CosIdStoreProviderselection. - CosIdLifecyclePrefetchWorkerExecutorService - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Lifecycle Prefetch Worker Executor Service.
- CosIdLifecyclePrefetchWorkerExecutorService(PrefetchWorkerExecutorService) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdLifecyclePrefetchWorkerExecutorService
- CosIdMachineAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Auto-configuration for CosId machine ID management components.
- CosIdMachineAutoConfiguration(CosIdProperties, MachineProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
Constructs a new machine auto-configuration with the provided properties.
- cosIdMachineIdDistributor(Environment, MachineProperties, ObjectProvider<CosIdStoreProvider>, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.store.CosIdMachineStoreAutoConfiguration
- cosIdMachineIdLifecycle(MachineIdGuarder, MachineIdDistributor, GuardDistribute) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- CosIdMachineIdLifecycle - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Starts the machine id guarder and reverts every distributed machine id on shutdown.
- CosIdMachineIdLifecycle(MachineIdGuarder, MachineIdDistributor, GuardDistribute) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
- CosIdMachineStoreAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.store
-
Creates the machine id distributor with the
CosIdStoreProviderof the configured store type, when no built-in backend bean was created: the application selected a provider of its own, or no backend of the type is on the classpath (then startup fails naming the type). - CosIdMachineStoreAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.store.CosIdMachineStoreAutoConfiguration
- cosIdManualMachineStoreProvider() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
The manual backend for
CosIdStoreProviderselection. - CosIdMongoMachineIdDistributorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
CosId Mongo MachineIdDistributor AutoConfiguration.
- CosIdMongoMachineIdDistributorAutoConfiguration(MachineProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdMongoMachineIdDistributorAutoConfiguration
- cosIdMongoMachineStoreProvider(ObjectProvider<MongoMachineLeaseStore>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMongoMachineIdDistributorAutoConfiguration
-
The MongoDB backend for
CosIdStoreProviderselection. - CosIdMongoSegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Redis Segment AutoConfiguration.
- CosIdMongoSegmentAutoConfiguration(SegmentIdProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdMongoSegmentAutoConfiguration
- CosIdMybatisAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.mybatis
-
CosId Mybatis AutoConfiguration.
- CosIdMybatisAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.mybatis.CosIdMybatisAutoConfiguration
- cosIdPlugin(CosIdAccessorRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.mybatis.CosIdMybatisAutoConfiguration
- CosIdPlugin - Class in me.ahoo.cosid.mybatis
-
CosId Plugin.
- CosIdPlugin(CosIdAccessorRegistry) - Constructor for class me.ahoo.cosid.mybatis.CosIdPlugin
- CosIdPlugin(CosIdAccessorRegistry, String) - Constructor for class me.ahoo.cosid.mybatis.CosIdPlugin
- CosIdProperties - Class in me.ahoo.cosid.spring.boot.starter
-
Configuration properties for CosId framework.
- CosIdProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.CosIdProperties
- CosIdProxyClientAuthConfiguration - Class in me.ahoo.cosid.spring.boot.starter
-
Sends
ProxyProperties.getToken()asAuthorization: Bearer <token>from the CosId proxy clients. - CosIdProxyClientAuthConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.CosIdProxyClientAuthConfiguration
- CosIdProxyClientTimeoutConfiguration - Class in me.ahoo.cosid.spring.boot.starter
-
Applies
ProxyProperties.getConnectTimeout()andProxyProperties.getReadTimeout()to the CosId proxy clients, which otherwise wait for the proxy server without any timeout. - CosIdProxyClientTimeoutConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.CosIdProxyClientTimeoutConfiguration
- CosIdProxyMachineIdDistributorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
CosId Spring Redis MachineIdDistributor AutoConfiguration.
- CosIdProxyMachineIdDistributorAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdProxyMachineIdDistributorAutoConfiguration
- cosIdProxyMachineStoreProvider(ObjectProvider<MachineLeaseClient>, ObjectProvider<CosIdProperties>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdProxyMachineIdDistributorAutoConfiguration
-
The proxy backend for
CosIdStoreProviderselection. - cosIdProxyRestClientAuthCustomizer(ObjectProvider<CosIdProperties>) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProxyClientAuthConfiguration
- cosIdProxyRestClientTimeoutCustomizer(ObjectProvider<CosIdProperties>) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProxyClientTimeoutConfiguration
-
Blocking clients (RestClient).
- CosIdProxySegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Jdbc Segment AutoConfiguration.
- CosIdProxySegmentAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdProxySegmentAutoConfiguration
- cosIdProxySegmentStoreProvider(ObjectProvider<SegmentClient>) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdProxySegmentAutoConfiguration
-
The proxy backend for
CosIdStoreProviderselection. - cosIdReadOnlyEndpoint(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
- CosIdReadOnlyEndpoint - Class in me.ahoo.cosid.spring.boot.starter.actuate
-
The read operations of the
cosidendpoint: the stats of every id generator, or of one. - CosIdReadOnlyEndpoint(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.spring.boot.starter.actuate.CosIdReadOnlyEndpoint
- cosIdRedisMachineStoreProvider(ObjectProvider<StringRedisTemplate>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdSpringRedisMachineIdDistributorAutoConfiguration
-
The Redis backend for
CosIdStoreProviderselection. - cosIdRedisSegmentStoreProvider(ObjectProvider<StringRedisTemplate>) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSpringRedisSegmentAutoConfiguration
-
The Redis backend for
CosIdStoreProviderselection. - cosIdRetryPolicy(CosIdZookeeperProperties) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperAutoConfiguration
- CosIdScanner - Interface in me.ahoo.cosid.accessor.scanner
-
Scans packages and registers qualified classes to
CosIdAccessorRegistry. - CosIdSegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Segment AutoConfiguration.
- CosIdSegmentAutoConfiguration(SegmentIdProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdSegmentAutoConfiguration
- CosIdSegmentStoreAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.store
-
Creates the id segment distributor factory with the
CosIdStoreProviderof the configured store type, when no built-in backend bean was created: the application selected a provider of its own, or no backend of the type is on the classpath (then startup fails naming the type). - CosIdSegmentStoreAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.store.CosIdSegmentStoreAutoConfiguration
- CosIdSetter - Interface in me.ahoo.cosid.accessor
-
Interface for setting the ID value on an object.
- CosIdSnowflakeAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.snowflake
-
CosId Snowflake AutoConfiguration.
- CosIdSnowflakeAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.CosIdSnowflakeAutoConfiguration
- CosIdSpringRedisMachineIdDistributorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
CosId Spring Redis MachineIdDistributor AutoConfiguration.
- CosIdSpringRedisMachineIdDistributorAutoConfiguration(MachineProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdSpringRedisMachineIdDistributorAutoConfiguration
- CosIdSpringRedisSegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Spring Redis Segment AutoConfiguration.
- CosIdSpringRedisSegmentAutoConfiguration(SegmentIdProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdSpringRedisSegmentAutoConfiguration
- CosIdState - Class in me.ahoo.cosid.cosid
-
Immutable state representing a CosId's decomposed components.
- CosIdState(long, int, int) - Constructor for class me.ahoo.cosid.cosid.CosIdState
-
Creates a new CosIdState.
- cosIdStatefulSetMachineStoreProvider() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
The Kubernetes StatefulSet backend for
CosIdStoreProviderselection. - CosIdStoreProvider - Interface in me.ahoo.cosid.spring.boot.starter.store
-
A backend for the starter: creates the machine id distributor and/or the id segment distributor factory of one store type.
- CosIdStoreProviders - Class in me.ahoo.cosid.spring.boot.starter.store
-
Picks the
CosIdStoreProviderof a store type. - cosIdStringGeneratorEndpoint(IdGeneratorProvider) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
- CosIdStringGeneratorEndpoint - Class in me.ahoo.cosid.spring.boot.starter.actuate
- CosIdStringGeneratorEndpoint(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.spring.boot.starter.actuate.CosIdStringGeneratorEndpoint
- CosIdZookeeperAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.zookeeper
-
CosId Zookeeper Auto Configuration.
- CosIdZookeeperAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperAutoConfiguration
- CosIdZookeeperMachineIdDistributorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.machine
-
CosId Zookeeper MachineIdDistributor AutoConfiguration.
- CosIdZookeeperMachineIdDistributorAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.CosIdZookeeperMachineIdDistributorAutoConfiguration
- cosIdZookeeperMachineStoreProvider(ObjectProvider<CuratorFramework>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdZookeeperMachineIdDistributorAutoConfiguration
-
The ZooKeeper backend for
CosIdStoreProviderselection. - CosIdZookeeperProperties - Class in me.ahoo.cosid.spring.boot.starter.zookeeper
-
CosId Zookeeper Properties.
- CosIdZookeeperProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- CosIdZookeeperProperties.Retry - Class in me.ahoo.cosid.spring.boot.starter.zookeeper
- CosIdZookeeperSegmentAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.segment
-
CosId Zookeeper Segment AutoConfiguration.
- CosIdZookeeperSegmentAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.CosIdZookeeperSegmentAutoConfiguration
- cosIdZookeeperSegmentStoreProvider(ObjectProvider<CuratorFramework>, ObjectProvider<RetryPolicy>) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdZookeeperSegmentAutoConfiguration
-
The ZooKeeper backend for
CosIdStoreProviderselection. - create(String, List<CosIdStoreProvider>, Function<CosIdStoreProvider, T>, String) - Static method in class me.ahoo.cosid.spring.boot.starter.store.CosIdStoreProviders
-
Create with the first provider of
typethat supports it: the application's providers first, in their order, then the built-in ones. - create(String, SegmentIdProperties.IdDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
Create the segment id
nameand register it in theIdGeneratorProviderunless one is there. - create(String, SnowflakeIdProperties.IdDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
Create the snowflake id
nameand register it in theIdGeneratorProviderunless one is there. - create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributorFactory
- create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.mongo.MongoIdSegmentDistributorFactory
- create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.proxy.ProxyIdSegmentDistributorFactory
- create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.segment.grouped.GroupedIdSegmentDistributorFactory
- create(IdSegmentDistributorDefinition) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributorFactory
-
Creates an ID segment distributor from a definition.
- create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributorFactory
- create(IdSegmentDistributorDefinition) - Method in class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributorFactory
- createBean(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
The factory method of the
{name}SegmentIdbeans. - createBean(String) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
The factory method of the
{name}SnowflakeIdbeans. - createContextual(DeserializationContext, BeanProperty) - Method in class me.ahoo.cosid.jackson.AsStringDeserializer
- createContextual(SerializationContext, BeanProperty) - Method in class me.ahoo.cosid.jackson.AsStringSerializer
- createDistributor(String, String, long, long) - Method in interface me.ahoo.cosid.proxy.api.SegmentApi
- createIdSegmentDistributorFactory(SegmentStoreContext) - Method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- createIdSegmentDistributorFactory(SegmentStoreContext) - Method in interface me.ahoo.cosid.spring.boot.starter.store.CosIdStoreProvider
-
Create the id segment distributor factory.
- createMachineIdDistributor(MachineStoreContext) - Method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- createMachineIdDistributor(MachineStoreContext) - Method in interface me.ahoo.cosid.spring.boot.starter.store.CosIdStoreProvider
-
Create the machine id distributor.
- current() - Method in class me.ahoo.cosid.segment.DefaultSegmentId
- current() - Method in class me.ahoo.cosid.segment.SegmentChainId
-
Get the current ID segment (the head of the chain).
- current() - Method in interface me.ahoo.cosid.segment.SegmentId
-
Get the current ID segment being used for generation.
- current() - Method in class me.ahoo.cosid.segment.StringSegmentId
- CURRENT - Enum constant in enum class me.ahoo.cosid.util.ProcessId
-
Singleton instance for current process.
- currentTimeMillis() - Method in class me.ahoo.cosid.cosid.RadixCosIdGenerator
- Custom() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Custom
- CUSTOM - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Custom converter implementation specified by class.
- customize(P) - Method in interface me.ahoo.cosid.spring.boot.starter.CustomizeIdProperties
- CustomizeIdProperties<P> - Interface in me.ahoo.cosid.spring.boot.starter
- CustomizeSegmentIdProperties - Interface in me.ahoo.cosid.spring.boot.starter.segment
- CustomizeSnowflakeIdProperties - Interface in me.ahoo.cosid.spring.boot.starter.snowflake
D
- daemonThreadFactory(String) - Static method in class me.ahoo.cosid.internal.Checks
-
A factory of daemon threads with the given name.
- DATE_TIME_FORMATTER - Static variable in class me.ahoo.cosid.cosid.FriendlyIdStateParser
-
DateTimeFormatter for parsing/generating timestamp strings.
- DATE_TIME_FORMATTER - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
-
DateTimeFormatter for timestamps:
yyyyMMddHHmmssSSS. - DATE_TIME_FORMATTER - Static variable in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
-
DateTimeFormatter for timestamps:
yyyyMMddHHmmss. - DatePrefix() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- DatePrefixConverterStat - Class in me.ahoo.cosid.stat.converter
-
Date prefix converter stat with pattern configuration.
- DatePrefixConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.DatePrefixConverterStat
- DatePrefixIdConverter - Class in me.ahoo.cosid.converter
-
ID converter that prepends a date prefix to the ID string.
- DatePrefixIdConverter(String, String, IdConverter) - Constructor for class me.ahoo.cosid.converter.DatePrefixIdConverter
-
Creates a new DatePrefixIdConverter.
- DECIMAL_RADIX - Static variable in class me.ahoo.cosid.cosid.FriendlyIdStateParser
-
Decimal radix for character size calculation.
- decorate() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- Decorator<D> - Interface in me.ahoo.cosid
-
Decorator pattern interface for wrapping and enhancing ID generators.
- DEFAULT - Static variable in class me.ahoo.cosid.cosid.RadixCosIdStateParser
- DEFAULT - Static variable in interface me.ahoo.cosid.machine.ClockBackwardsSynchronizer
-
Default synchronizer instance.
- DEFAULT_AMOUNT - Static variable in class me.ahoo.cosid.sharding.IntervalStep
-
Default amount of 1.
- DEFAULT_BROKEN_THRESHOLD - Static variable in class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- DEFAULT_CONCURRENT_THREADS - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- DEFAULT_CONCURRENT_THREADS - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- DEFAULT_DELAY - Static variable in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
- DEFAULT_DELIMITER - Static variable in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
-
Default delimiter between group key and ID.
- DEFAULT_FIELD - Static variable in annotation interface me.ahoo.cosid.annotation.CosId
-
Default field name.
- DEFAULT_ID_SIZE - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- DEFAULT_ID_SIZE - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- DEFAULT_INITIAL_DELAY - Static variable in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
- DEFAULT_LIST_KEY - Static variable in class me.ahoo.cosid.mybatis.CosIdPlugin
- DEFAULT_LOCAL_STATE_INTERVAL - Static variable in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
How often the local machine state of each registered instance is refreshed, see
MachineIdDistributor.refreshLocalState(String, InstanceId). - DEFAULT_MACHINE_BIT - Static variable in class me.ahoo.cosid.cosid.RadixCosIdGenerator
-
Default machine ID bits (20 bits).
- DEFAULT_MACHINE_BIT - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
The default number of bits used for the machine ID portion (10 bits).
- DEFAULT_MACHINE_BIT - Static variable in class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Default number of machine ID bits (10 bits).
- DEFAULT_MAX_PREFETCH_DISTANCE - Static variable in class me.ahoo.cosid.segment.SegmentChainId
-
The default upper bound, in segments, of what one prefetch may request when the generator is hungry.
- DEFAULT_NAMESPACE - Static variable in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Default namespace used when no specific namespace is configured.
- DEFAULT_OFFSET - Static variable in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
The default offset for ID segments.
- DEFAULT_PREFETCH_PERIOD - Static variable in class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
- DEFAULT_QUERY_TIMEOUT - Static variable in class me.ahoo.cosid.jdbc.JdbcSupport
-
Default query timeout applied to every distributor statement.
- DEFAULT_SAFE_DISTANCE - Static variable in class me.ahoo.cosid.segment.SegmentChainId
-
The default safe distance for prefetching segments.
- DEFAULT_SEGMENTS - Static variable in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
The default number of segments to allocate at once.
- DEFAULT_SEQUENCE_BIT - Static variable in class me.ahoo.cosid.cosid.RadixCosIdGenerator
-
Default sequence bits (16 bits, 65536 per millisecond).
- DEFAULT_SEQUENCE_BIT - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
The default number of bits used for the sequence portion (12 bits).
- DEFAULT_SEQUENCE_BIT - Static variable in class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Default number of sequence bits (22 bits).
- DEFAULT_SEQUENCE_RESET_THRESHOLD - Static variable in class me.ahoo.cosid.cosid.RadixCosIdGenerator
-
Default sequence reset threshold (half of max sequence).
- DEFAULT_SEQUENCE_RESET_THRESHOLD - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
The default sequence reset threshold (half of the maximum sequence value).
- DEFAULT_SEQUENCE_RESET_THRESHOLD - Static variable in class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Default sequence reset threshold (half of max sequence).
- DEFAULT_SPIN_THRESHOLD - Static variable in class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- DEFAULT_STATE_LOCATION_PATH - Static variable in class me.ahoo.cosid.machine.LocalMachineStateStorage
-
Default state location in user home directory.
- DEFAULT_STEP - Static variable in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
The default step size for ID segments.
- DEFAULT_TIME_OUT - Static variable in interface me.ahoo.cosid.mongo.Documents
-
Server-side time limit (
maxTime) of each find-and-update. - DEFAULT_TIMEOUT - Static variable in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
- DEFAULT_TIMEOUT - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- DEFAULT_TIMEOUT - Static variable in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- DEFAULT_TIMESTAMP_BIT - Static variable in class me.ahoo.cosid.cosid.RadixCosIdGenerator
-
Default timestamp bits (44 bits, ~556 years at millisecond precision).
- DEFAULT_TIMESTAMP_BIT - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
The default number of bits used for the timestamp portion (41 bits).
- DEFAULT_TIMESTAMP_BIT - Static variable in class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Default number of timestamp bits (31 bits).
- DEFAULT_WAIT - Static variable in class me.ahoo.cosid.test.ModSpec
- DefaultAccessorParser - Class in me.ahoo.cosid.accessor.parser
-
Default implementation of
CosIdAccessorParser. - DefaultAccessorParser(FieldDefinitionParser) - Constructor for class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
-
Creates a parser with the specified definition parser, resolving generators from
DefaultIdGeneratorProvider.INSTANCE. - DefaultAccessorParser(FieldDefinitionParser, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
-
Creates a parser whose accessors resolve generators from the given provider.
- DefaultAccessorRegistry - Class in me.ahoo.cosid.accessor.registry
-
Default implementation of
CosIdAccessorRegistry. - DefaultAccessorRegistry(CosIdAccessorParser) - Constructor for class me.ahoo.cosid.accessor.registry.DefaultAccessorRegistry
-
Creates a registry with the specified parser.
- DefaultClockBackwardsSynchronizer - Class in me.ahoo.cosid.machine
-
Default Clock Backwards Synchronizer.
- DefaultClockBackwardsSynchronizer() - Constructor for class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- DefaultClockBackwardsSynchronizer(int, int) - Constructor for class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- DefaultCosIdAccessor - Class in me.ahoo.cosid.accessor
-
Default
CosIdAccessorimplementation. - DefaultCosIdAccessor(IdDefinition, CosIdGetter, CosIdSetter) - Constructor for class me.ahoo.cosid.accessor.DefaultCosIdAccessor
-
Creates a new accessor.
- DefaultCosIdAccessor(IdDefinition, CosIdGetter, CosIdSetter, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.accessor.DefaultCosIdAccessor
-
Creates a new accessor that resolves its generator from the given provider.
- DefaultCosIdAccessor.EnsureIntegerId - Class in me.ahoo.cosid.accessor
-
Ensures ID is generated for Integer ID types.
- DefaultCosIdAccessor.EnsureLongId - Class in me.ahoo.cosid.accessor
-
Ensures ID is generated for Long ID types.
- DefaultCosIdAccessor.EnsureStringId - Class in me.ahoo.cosid.accessor
-
Ensures ID is generated for String ID types.
- DefaultCosIdScanner - Class in me.ahoo.cosid.accessor.scanner
-
Default implementation of
CosIdScanner. - DefaultCosIdScanner(String[], CosIdAccessorParser, CosIdAccessorRegistry) - Constructor for class me.ahoo.cosid.accessor.scanner.DefaultCosIdScanner
-
Creates a scanner with accessor parser.
- DefaultCosIdScanner(String[], FieldDefinitionParser, CosIdAccessorRegistry) - Constructor for class me.ahoo.cosid.accessor.scanner.DefaultCosIdScanner
-
Creates a scanner with field definition parser.
- DefaultGroupedIdSegmentDistributor - Class in me.ahoo.cosid.segment.grouped
-
Default grouped ID segment distributor implementation.
- DefaultGroupedIdSegmentDistributor(GroupBySupplier, IdSegmentDistributorDefinition, IdSegmentDistributorFactory) - Constructor for class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
-
Creates a grouped distributor.
- DefaultGroupedIdSegmentDistributor.GroupedBinding - Class in me.ahoo.cosid.segment.grouped
-
Holds a group binding with its distributor.
- DefaultIdGeneratorProvider - Class in me.ahoo.cosid.provider
-
Default
IdGeneratorProviderimplementation. - DefaultIdGeneratorProvider() - Constructor for class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
-
Creates a new instance with an empty registry.
- DefaultIdSegment - Class in me.ahoo.cosid.segment
-
Default implementation of an ID segment.
- DefaultIdSegment(long, long) - Constructor for class me.ahoo.cosid.segment.DefaultIdSegment
-
Create a new DefaultIdSegment with default configuration.
- DefaultIdSegment(long, long, long, long, GroupedKey) - Constructor for class me.ahoo.cosid.segment.DefaultIdSegment
-
Create a new DefaultIdSegment with full custom configuration.
- DefaultMachineIdGuarder - Class in me.ahoo.cosid.machine
-
Default MachineId Guarder implementation.
- DefaultMachineIdGuarder(MachineIdDistributor, Duration) - Constructor for class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Constructs a DefaultMachineIdGuarder with default scheduling parameters.
- DefaultMachineIdGuarder(MachineIdDistributor, ScheduledExecutorService, Duration, Duration, Duration) - Constructor for class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Constructs a DefaultMachineIdGuarder with custom scheduling parameters.
- DefaultMachineIdGuarder(MachineIdDistributor, ScheduledExecutorService, Duration, Duration, Duration, Duration) - Constructor for class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Constructs a DefaultMachineIdGuarder that also refreshes the local machine state every
localStateInterval. - DefaultPrefetchWorker - Class in me.ahoo.cosid.segment.concurrent
-
Default prefetch worker implementation.
- DefaultPrefetchWorker(Duration) - Constructor for class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
-
Creates a worker with specified prefetch period.
- DefaultSegmentId - Class in me.ahoo.cosid.segment
-
Default segment algorithm ID generator.
- DefaultSegmentId(long, IdSegmentDistributor) - Constructor for class me.ahoo.cosid.segment.DefaultSegmentId
-
Creates a generator with specified segment TTL.
- DefaultSegmentId(IdSegmentDistributor) - Constructor for class me.ahoo.cosid.segment.DefaultSegmentId
-
Creates a generator with infinite segment TTL.
- defaultSequenceResetThreshold(int) - Static method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Calculate the default sequence reset threshold.
- DefaultSnowflakeFriendlyId - Class in me.ahoo.cosid.snowflake
-
Default implementation of
SnowflakeFriendlyId. - DefaultSnowflakeFriendlyId(SnowflakeId) - Constructor for class me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
-
Creates an instance with system default zone.
- DefaultSnowflakeFriendlyId(SnowflakeId, ZoneId) - Constructor for class me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
-
Creates an instance with specified zone.
- DefaultSnowflakeFriendlyId(SnowflakeId, IdConverter, SnowflakeIdStateParser) - Constructor for class me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
-
Creates an instance with specified converter and parser.
- DefaultSnowflakeFriendlyId(SnowflakeId, SnowflakeIdStateParser) - Constructor for class me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
-
Creates an instance with specified parser.
- definitionAsAccessor(IdDefinition) - Method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
- definitions() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
The segment ids of the properties: the share, when enabled, and the named ones.
- definitions() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
The snowflake ids of the properties: the share, when enabled, and the named ones.
- DELETE_ENABLED_KEY - Static variable in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpointAutoConfiguration
-
Whether the
cosidendpoint has its DELETE operation, which removes id generators at runtime. - DELIMITER - Static variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Delimiter used in friendly ID format.
- deserialize(String, Class<T>) - Static method in class me.ahoo.cosid.proxy.Jsons
- deserialize(JsonParser, DeserializationContext) - Method in class me.ahoo.cosid.jackson.AsStringDeserializer
- destroy() - Method in class me.ahoo.cosid.spring.boot.starter.axon.CosIdAxonAutoConfiguration.CosIdAxonProviderBinding
- destroy() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
Remove the ids from the provider, where it still holds them, so a later context does not get closed ones; close the ids that are not beans.
- destroy() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
Remove the ids from the provider, where it still holds them, so a later context does not get ids of this one, whose machine ids are released.
- distribute() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- distribute(String, int, String, boolean, String) - Method in interface me.ahoo.cosid.proxy.api.MachineApi
- distribute(String, int, String, boolean, String) - Method in interface me.ahoo.cosid.proxy.api.MachineClient
- distribute(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
-
1.
- distribute(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.GuardDistribute
- distribute(String, int, InstanceId, Duration) - Method in interface me.ahoo.cosid.machine.MachineIdDistribute
-
Distribute (allocate) a machine ID within the specified namespace.
- Distribute - Class in me.ahoo.cosid.test.machine.distributor
-
Distribute .
- Distribute(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.Distribute
- DISTRIBUTE_TIME_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- distributeByRevertFilter(String, InstanceId, Duration) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeByRevertUpdate(InstanceId, long) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeBySelfFilter(String, InstanceId, Duration) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeBySelfUpdate(long) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeBySelfUpdate(InstanceId, long) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeConcurrent() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeConcurrent - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeConcurrent .
- DistributeConcurrent(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeConcurrent
- distributeDocument(String, InstanceId, MachineState) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- distributeIdempotent() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeIdempotent - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeIdempotent .
- DistributeIdempotent(Supplier<MachineIdDistributor>, int, Duration) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeIdempotent
- distributeOverflow() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeOverflow - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeOverflow .
- DistributeOverflow(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeOverflow
- distributeRemote(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- distributeRemote(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- distributeRemote(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- distributeRemote(String, int, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.ManualMachineIdDistributor
- distributeRevert() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeRevert - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeRevert .
- DistributeRevert(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeRevert
- distributeSafeGuard() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeSafeGuard - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeSafeGuard .
- DistributeSafeGuard(Supplier<MachineIdDistributor>, int, Duration) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeSafeGuard
- distributeStable() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeStable - Class in me.ahoo.cosid.test.machine.distributor
-
DistributeStable .
- DistributeStable(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeStable
- distributeStableNotRecycled() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- DistributeStableNotRecycled - Class in me.ahoo.cosid.test.machine.distributor
-
The machine id of a stable instance is never recycled by other instances, even after its owner has been offline for longer than the safe guard duration, and the owner gets it back when it starts again.
- DistributeStableNotRecycled(Supplier<MachineIdDistributor>, Duration) - Constructor for class me.ahoo.cosid.test.machine.distributor.DistributeStableNotRecycled
- Distributor() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Constructs a new Distributor configuration with default Redis, Mongo, and Jdbc settings.
- Distributor() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- Documents - Interface in me.ahoo.cosid.mongo
- doNextMaxId(long) - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
- doNextMaxId(long) - Method in class me.ahoo.cosid.mongo.MongoIdSegmentDistributor
- doNextMaxId(long) - Method in class me.ahoo.cosid.proxy.ProxyIdSegmentDistributor
- doNextMaxId(long) - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
-
Ask the store for the next max id,
stepafter the previous one. - doNextMaxId(long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- doNextMaxId(long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributor
E
- eachFormatTakesOverTheOthersExpiredLease() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
- eachFormatTakesTheOthersReleasedMachineId() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
- empty() - Static method in class me.ahoo.cosid.sharding.ExactCollection
- ENABLED_KEY - Static variable in class me.ahoo.cosid.spring.boot.starter.activiti.ActivitiIdGeneratorAutoConfiguration
-
Turns the Activiti id generator off with
false. - ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.ConditionalOnCosIdEnabled
-
The configuration property key used to enable/disable CosId.
- ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.cosid.ConditionalOnCosIdGeneratorEnabled
- ENABLED_KEY - Static variable in class me.ahoo.cosid.spring.boot.starter.flowable.FlowableIdGeneratorAutoConfiguration
-
Turns the Flowable id generator off with
false. - ENABLED_KEY - Static variable in class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcAutoConfiguration
-
Turns the Spring Data JDBC integration (
@Idfields and the before-convert callback) on withtrue. - ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.machine.ConditionalOnCosIdMachineEnabled
- ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.mybatis.ConditionalOnCosIdMybatisEnabled
-
Turns the MyBatis plugin off with
false. - ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.segment.ConditionalOnCosIdSegmentEnabled
- ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.snowflake.ConditionalOnCosIdSnowflakeEnabled
- ENABLED_KEY - Static variable in annotation interface me.ahoo.cosid.spring.boot.starter.zookeeper.ConditionalOnCosIdZookeeperEnabled
- EnabledSuffix - Interface in me.ahoo.cosid.spring.boot.starter
-
Constants for configuration property enabled suffixes.
- ensureAccessible(AccessibleObject) - Static method in interface me.ahoo.cosid.accessor.CosIdAccessor
-
Ensure that the specified accessible object (field/method) is accessible.
- ensureCosIdCollection() - Method in interface me.ahoo.cosid.mongo.IdSegmentInitializer
- ensureCosIdCollection() - Method in class me.ahoo.cosid.mongo.MongoIdSegmentInitializer
- ensureId(Object) - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Ensure the target object has an ID (always returns false for NotFound).
- ensureId(Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
- ensureId(Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureIntegerId
- ensureId(Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureLongId
- ensureId(Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureStringId
- ensureId(Object) - Method in interface me.ahoo.cosid.accessor.EnsureId
-
Ensure that the target object has an ID set.
- ensureId(Object) - Method in interface me.ahoo.cosid.accessor.registry.CosIdAccessorRegistry
-
Ensures the target object has an ID, registering if needed.
- EnsureId - Interface in me.ahoo.cosid.accessor
-
Ensure that the target object has an ID set.
- ensureIdSegmentDocument(String, long) - Static method in interface me.ahoo.cosid.mongo.IdSegmentOperates
- EnsureIntegerId() - Constructor for class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureIntegerId
- EnsureLongId() - Constructor for class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureLongId
- ensureMachineCollection() - Method in interface me.ahoo.cosid.mongo.MachineInitializer
- ensureMachineCollection() - Method in class me.ahoo.cosid.mongo.MongoMachineInitializer
- ensureNextIdSegment(IdSegment) - Method in interface me.ahoo.cosid.segment.IdSegment
-
Ensure that the next segment is valid relative to this segment.
- ensureOffsetUpdates(long) - Static method in interface me.ahoo.cosid.mongo.IdSegmentOperates
- ensureSetNext(Function<IdSegmentChain, IdSegmentChain>) - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Ensures the next segment is set, retrying until successful.
- ensureStep(long) - Static method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Ensure that the specified step size is valid.
- EnsureStringId() - Constructor for class me.ahoo.cosid.accessor.DefaultCosIdAccessor.EnsureStringId
- ensureValid() - Method in class me.ahoo.cosid.machine.MachineIdLease
-
Throw
MachineIdLostExceptionif the lease is lost or expired. - entries() - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- entries() - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get all registered ID generator entries.
- epoch - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Epoch timestamp used as the base for time calculations.
- epoch - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Epoch timestamp in milliseconds.
- epoch() - Element in annotation interface me.ahoo.cosid.jackson.AsString
-
epoch of
SnowflakeId. - epoch() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns the value of the
epochrecord component. - equals(Object) - Method in class me.ahoo.cosid.cosid.CosIdState
- equals(Object) - Method in class me.ahoo.cosid.machine.InstanceId
- equals(Object) - Method in class me.ahoo.cosid.machine.lease.Lease
- equals(Object) - Method in class me.ahoo.cosid.machine.MachineId
- equals(Object) - Method in class me.ahoo.cosid.machine.MachineState
-
Check if this machine state is equal to another object.
- equals(Object) - Method in class me.ahoo.cosid.machine.NamespacedInstanceId
- equals(Object) - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.ahoo.cosid.proxy.api.LeaseResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class me.ahoo.cosid.proxy.api.MachineStateResponse
- equals(Object) - Method in record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.ahoo.cosid.proxy.api.RenewRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class me.ahoo.cosid.segment.grouped.GroupedId
- equals(Object) - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
- equals(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
- equals(Object) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
- equals(Object) - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Indicates whether some other object is "equal to" this one.
- ErrorResponse - Class in me.ahoo.cosid.proxy.api
-
Error Response.
- ErrorResponse(String, String, List<?>) - Constructor for class me.ahoo.cosid.proxy.api.ErrorResponse
- everyWriteChangesTheVersion() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- ExactCollection<E> - Class in me.ahoo.cosid.sharding
-
Exact-size collection optimized for known node counts.
- ExactCollection(int) - Constructor for class me.ahoo.cosid.sharding.ExactCollection
- ExactCollection(Object...) - Constructor for class me.ahoo.cosid.sharding.ExactCollection
- Exceptions - Class in me.ahoo.cosid.util
-
Exception tool class.
- Exceptions.CheckedFunction<T> - Interface in me.ahoo.cosid.util
-
Checked Exception Function.
- execute() - Method in interface me.ahoo.cosid.test.Assert.Executable
- execute(Assert.Executable) - Static method in class me.ahoo.cosid.test.Assert
- executorService() - Static method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Creates a default scheduled executor service for the guarder.
- exists(String, InstanceId) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- exists(String, InstanceId) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- exists(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Checks if a machine state exists for a given namespace and instance.
- EXPIRED - Static variable in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
- expiredBefore() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns the value of the
expiredBeforerecord component.
F
- factory() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- factory() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- fail() - Static method in class me.ahoo.cosid.spring.boot.starter.MongoReactiveRemoved
-
Fail the startup.
- failed(long, Throwable) - Static method in class me.ahoo.cosid.machine.GuardianState
-
Creates a failed guardian state.
- FETCH_MAX_ID_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
- FETCH_MAX_ID_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- field() - Element in annotation interface me.ahoo.cosid.annotation.CosId
-
Gets the ID field name (for type-level annotation).
- FieldDefinitionParser - Interface in me.ahoo.cosid.accessor.parser
-
Parser for creating
IdDefinitionfrom fields. - FieldGetter - Class in me.ahoo.cosid.accessor.field
-
ID getter that accesses field directly.
- FieldGetter(Field) - Constructor for class me.ahoo.cosid.accessor.field.FieldGetter
-
Creates a getter for the specified field.
- FieldSetter - Class in me.ahoo.cosid.accessor.field
-
ID setter that accesses field directly.
- FieldSetter(Field) - Constructor for class me.ahoo.cosid.accessor.field.FieldSetter
-
Creates a setter for the specified field.
- firstNotBlank(String...) - Static method in class me.ahoo.cosid.spring.boot.starter.Namespaces
-
Returns the first non-blank namespace from the provided arguments.
- floorUnit(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
-
Truncates time to the precision of the unit.
- FlowableIdGenerator - Class in me.ahoo.cosid.flowable
-
Flowable IdGenerator Based on CosId.
- FlowableIdGenerator() - Constructor for class me.ahoo.cosid.flowable.FlowableIdGenerator
-
Creates a generator that resolves from
DefaultIdGeneratorProvider.INSTANCE. - FlowableIdGenerator(String, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.flowable.FlowableIdGenerator
-
Creates a generator that resolves the named generator from the given provider.
- FlowableIdGenerator(IdGeneratorProvider) - Constructor for class me.ahoo.cosid.flowable.FlowableIdGenerator
-
Creates a generator that resolves the generator named by the
FlowableIdGenerator.ID_KEYsystem property (defaultIdGeneratorProvider.SHARE) from the given provider. - FlowableIdGeneratorAutoConfiguration - Class in me.ahoo.cosid.spring.boot.starter.flowable
-
Flowable IdGenerator Auto Configuration.
- FlowableIdGeneratorAutoConfiguration() - Constructor for class me.ahoo.cosid.spring.boot.starter.flowable.FlowableIdGeneratorAutoConfiguration
- forever(String) - Static method in class me.ahoo.cosid.segment.grouped.GroupedKey
-
Creates a GroupedKey that never expires.
- FOREVER - Static variable in class me.ahoo.cosid.machine.MachineIdLease
-
A lease that never expires, used when machine ids are never recycled.
- FOREVER_SAFE_GUARD_DURATION - Static variable in interface me.ahoo.cosid.machine.MachineIdDistributor
-
A duration representing forever for safe guard purposes.
- formatter - Variable in class me.ahoo.cosid.segment.grouped.date.AbstractDateGroupBySupplier
- Friendly() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Friendly
- FRIENDLY - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties.Type
-
Friendly generator that produces human-readable IDs with timestamp formatting.
- FRIENDLY_ID - Enum constant in enum class me.ahoo.cosid.jackson.AsString.Type
- FriendlyCosIdGenerator - Class in me.ahoo.cosid.cosid
-
CosIdGenerator that produces human-readable string IDs.
- FriendlyCosIdGenerator(int, int, int, int, int, ZoneId, boolean) - Constructor for class me.ahoo.cosid.cosid.FriendlyCosIdGenerator
-
Creates a generator with custom bit configuration.
- FriendlyCosIdGenerator(int, ZoneId, boolean) - Constructor for class me.ahoo.cosid.cosid.FriendlyCosIdGenerator
-
Creates a generator with default bit configuration.
- friendlyId() - Method in interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
-
Generates an ID and returns its friendly state.
- friendlyId(long) - Method in interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
-
Parses a raw ID to friendly state.
- friendlyId(String) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Sets the friendly ID string.
- FriendlyIdStateParser - Class in me.ahoo.cosid.cosid
-
Parser for CosIdState using a human-readable format.
- FriendlyIdStateParser(ZoneId, boolean, int, int) - Constructor for class me.ahoo.cosid.cosid.FriendlyIdStateParser
-
Creates a new FriendlyIdStateParser.
- fromDate(Date, ZoneId) - Static method in class me.ahoo.cosid.util.LocalDateTimeConvert
- fromInstant(Instant, ZoneId) - Static method in class me.ahoo.cosid.util.LocalDateTimeConvert
- fromString(String, DateTimeFormatter) - Static method in class me.ahoo.cosid.util.LocalDateTimeConvert
-
convert
StringtoLocalDateTime. - fromTimestamp(long, ZoneId) - Static method in class me.ahoo.cosid.util.LocalDateTimeConvert
- fromTimestampSecond(long, ZoneId) - Static method in class me.ahoo.cosid.util.LocalDateTimeConvert
G
- gap(IdSegmentChain, long) - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Calculates the gap between this chain's sequence and another's max ID.
- generate() - Method in interface me.ahoo.cosid.IdGenerator
-
Generate a distributed ID as a long value.
- generate() - Method in interface me.ahoo.cosid.IdGeneratorDecorator
-
Generate a distributed ID by delegating to the actual generator.
- generate() - Method in class me.ahoo.cosid.IntegerIdGenerator
-
Generate a distributed ID as an integer value.
- generate() - Method in class me.ahoo.cosid.jvm.AtomicLongGenerator
- generate() - Method in class me.ahoo.cosid.segment.DefaultSegmentId
- generate() - Method in class me.ahoo.cosid.segment.SegmentChainId
-
Generate a new distributed ID.
- generate() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Generates the next unique ID.
- generate() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- generate() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- generate() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- generate(String) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdGeneratorEndpoint
- generateAsState() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- generateAsState() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Generate an ID as a state object.
- generateAsState() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- generateAsState() - Method in class me.ahoo.cosid.cosid.RadixCosIdGenerator
- generateAsString() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Generate an ID as a string value.
- generateAsString() - Method in interface me.ahoo.cosid.IdGenerator
-
Generate a distributed ID as a string value.
- generateAsString() - Method in class me.ahoo.cosid.IntegerIdGenerator
-
Generate a distributed ID as a string value.
- generateAsString() - Method in class me.ahoo.cosid.jvm.UuidGenerator
- generateAsString() - Method in class me.ahoo.cosid.provider.LazyIdGenerator
- generateAsString() - Method in class me.ahoo.cosid.segment.StringSegmentId
-
Converts with the group of the id when the converter uses it, so a grouped prefix comes from the segment the id came from.
- generateAsString() - Method in interface me.ahoo.cosid.StringIdGenerator
-
Generate a distributed ID as a string value.
- generateAsString(String) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdStringGeneratorEndpoint
- generateAsStringUsesTheSegmentGroup() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
-
A string segment id with a grouped prefix takes the group from the segment the id came from.
- generateConcurrent() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- generateConcurrentOfChain() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- generateGrouped() - Method in class me.ahoo.cosid.segment.DefaultSegmentId
- generateGrouped() - Method in class me.ahoo.cosid.segment.SegmentChainId
- generateGrouped() - Method in interface me.ahoo.cosid.segment.SegmentId
-
Generate an id together with the group of the segment it came from.
- generateGrouped() - Method in class me.ahoo.cosid.segment.StringSegmentId
- generateGroupedAsString() - Method in interface me.ahoo.cosid.segment.SegmentId
-
Generate an id and convert it with its group, see
SegmentId.generateGrouped()andIdConverter.asString(GroupedId). - generateGroupedAsStringNeedsNoThreadLocalGroup() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- generateGroupedCarriesTheGroup() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- generateIdentifier() - Method in class me.ahoo.cosid.axon.CosIdIdentifierFactory
- generateMultiInstanceConcurrent() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- get() - Method in class me.ahoo.cosid.segment.grouped.date.AbstractDateGroupBySupplier
- get(int) - Method in class me.ahoo.cosid.sharding.ExactCollection
- get(Class<?>) - Method in interface me.ahoo.cosid.accessor.registry.CosIdAccessorRegistry
-
Gets the accessor for a class.
- get(Class<?>) - Method in class me.ahoo.cosid.accessor.registry.DefaultAccessorRegistry
- get(String) - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- get(String) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get an ID generator by its name.
- get(String, Class<T>) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get an ID generator by its name and type.
- get(String, InstanceId) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- get(String, InstanceId) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- get(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Gets the machine state for a given namespace and instance.
- GET_PREFIX - Static variable in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
- getActual() - Method in class me.ahoo.cosid.converter.DatePrefixIdConverter
- getActual() - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
- getActual() - Method in class me.ahoo.cosid.converter.PrefixIdConverter
- getActual() - Method in class me.ahoo.cosid.converter.SuffixIdConverter
- getActual() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- getActual() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- getActual() - Method in interface me.ahoo.cosid.Decorator
-
Get the actual (wrapped) object that this decorator is enhancing.
- getActual() - Method in interface me.ahoo.cosid.IdGeneratorDecorator
-
Get the actual (wrapped) ID generator that this decorator is enhancing.
- getActual() - Method in class me.ahoo.cosid.provider.LazyIdGenerator
- getActual() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- getActual() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- getActual() - Method in interface me.ahoo.cosid.stat.generator.IdGeneratorStat
- getActual() - Method in interface me.ahoo.cosid.stat.Stat
-
Gets the wrapped actual stat.
- getActual() - Method in class me.ahoo.cosid.StringIdGeneratorDecorator
-
Get the actual (wrapped) ID generator that this decorator is enhancing.
- getActual() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- getActual(D) - Static method in interface me.ahoo.cosid.Decorator
-
Recursively get the actual object from a potentially nested decorator chain.
- getActual(T) - Static method in interface me.ahoo.cosid.IdGeneratorDecorator
-
Recursively get the actual ID generator from a potentially nested decorator chain.
- getAdderKey() - Method in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- getAll() - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- getAll() - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get all registered ID generators.
- getAmount() - Method in class me.ahoo.cosid.sharding.IntervalStep
-
Gets the amount.
- getBackwardsTimeStamp(long) - Static method in interface me.ahoo.cosid.machine.ClockBackwardsSynchronizer
-
Calculates how far backwards the clock has moved.
- getBaseSleepTimeMs() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- getBlockUntilConnectedWait() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- getBrokenThreshold() - Method in exception me.ahoo.cosid.snowflake.exception.ClockTooManyBackwardsException
-
Gets the broken threshold.
- getBrokenThreshold() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.ClockBackwards
-
Gets the broken threshold for clock validation.
- getBy() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.Group
- getChain() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the chain configuration.
- getChain() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getCharSize() - Method in class me.ahoo.cosid.converter.RadixIdConverter
-
Gets the fixed character size.
- getCharSize() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix
- getCharSize() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix36
- getCharSize() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.ToString
- getClockBackwards() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the clock backwards configuration.
- getClockBackwardsSynchronizer() - Method in class me.ahoo.cosid.spring.boot.starter.store.MachineStoreContext
- getCode() - Method in class me.ahoo.cosid.proxy.api.ErrorResponse
- getCommandTimeout() - Method in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributorFactory
- getCommandTimeout() - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- getConcurrentThreads() - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- getConcurrentThreads() - Method in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- getConnection() - Static method in class me.ahoo.cosid.test.container.MySqlLauncher
- getConnection() - Static method in class me.ahoo.cosid.test.container.PostgresLauncher
- getConnectionString() - Static method in class me.ahoo.cosid.test.container.MongoLauncher
- getConnectionTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- getConnectString() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- getConnectTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- getConverter() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getConverter() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getConverter() - Method in interface me.ahoo.cosid.stat.generator.IdGeneratorStat
-
Gets the converter stat.
- getCorePoolSize() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Gets the core pool size for the executor.
- getCurrent() - Method in exception me.ahoo.cosid.segment.NextIdSegmentExpiredException
-
Gets the current segment.
- getCurrentProcessId() - Static method in enum class me.ahoo.cosid.util.ProcessId
-
Gets the current process ID.
- getCurrentProcessName() - Static method in enum class me.ahoo.cosid.util.ProcessId
-
Gets the current process name.
- getCurrentTime() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getCurrentTime() - Method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
Get the current time in milliseconds.
- getCurrentTime() - Method in class me.ahoo.cosid.snowflake.SecondSnowflakeId
- getCurrentTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.ClockBackwardsException
-
Gets the current timestamp.
- getCurrentTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.ClockTooManyBackwardsException
-
Gets the current timestamp.
- getCustom() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the custom converter configuration.
- getDatabase() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
-
Gets the MongoDB database name.
- getDatabase() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Mongo
- getDatePrefix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the date prefix configuration.
- getDateTimeFormatter() - Method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- getDateTimeFormatter() - Method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- getDateTimeFormatter() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Gets the date time formatter for parsing timestamps.
- getDeclaringClass() - Method in exception me.ahoo.cosid.accessor.MultipleIdNotSupportException
-
Gets the declaring class.
- getDelay() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Gets the delay between guarding checks.
- getDelimiter() - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
-
Gets the delimiter.
- getDelimiter() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- getDelimiter() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- getDiffTime(LocalDateTime) - Method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- getDiffTime(LocalDateTime) - Method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- getDiffTime(LocalDateTime) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Converts a LocalDateTime to time difference from epoch.
- getDiffTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.TimestampOverflowException
-
Gets the diff timestamp.
- getDistributed() - Method in class me.ahoo.cosid.machine.GuardDistribute
-
Every machine id distributed through this instance, whether or not a guarder is running, so that they can all be reverted on shutdown.
- getDistributeLeaseManager() - Method in class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- getDistributeTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Redis
- getDistributor() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the distributor configuration.
- getDistributor() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the distributor configuration.
- getDistributor() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- getDivisor() - Method in class me.ahoo.cosid.sharding.ModCycle
-
Gets the divisor.
- getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.CachedSharding
- getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
- getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.ModCycle
- getEffectiveNodes() - Method in interface me.ahoo.cosid.sharding.Sharding
-
Gets all effective node names.
- getEpoch() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getEpoch() - Method in exception me.ahoo.cosid.snowflake.exception.TimestampOverflowException
-
Gets the epoch.
- getEpoch() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the epoch timestamp used as the base for time calculations.
- getEpoch() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- getEpoch() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getErrors() - Method in class me.ahoo.cosid.proxy.api.ErrorResponse
- getFactory() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getFetchMaxIdSql() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- getFetchTime() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the time when this segment was fetched.
- getFetchTime() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the time when this segment was fetched.
- getFetchTime() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getFetchTime() - Method in class me.ahoo.cosid.segment.MergedIdSegment
-
ID segment fetch time.
- getFriendly() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the friendly format configuration.
- getFriendlyId() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Gets the human-readable form of this ID.
- getGeneratorName() - Method in class me.ahoo.cosid.accessor.IdDefinition
-
Get the name of the ID generator to use for this field.
- getGeneratorName() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the generator name from the ID definition.
- getGeneratorName() - Method in class me.ahoo.cosid.provider.LazyIdGenerator
-
Gets the generator name.
- getGeneratorName() - Method in exception me.ahoo.cosid.provider.NotFoundIdGeneratorException
-
Gets the generator name that was not found.
- getGetter() - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
-
Gets the getter.
- getGetter() - Method in class me.ahoo.cosid.accessor.method.MethodGetter
-
Gets the getter method.
- getGroup() - Method in class me.ahoo.cosid.segment.grouped.GroupedId
-
The group of the segment the id came from,
GroupedKey.NEVERwhen it is not grouped. - getGroup() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getGroup() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- getGroup() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getGroupPrefix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the group prefix configuration.
- getGuarder() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the guarder configuration.
- getGuardianStates() - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Gets the guardian state for all registered instances.
- getGuardianStates() - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Gets the guardian state for all registered instances.
- getGuardianStates() - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
-
Gets the guardian state for all registered instances.
- getHead() - Method in class me.ahoo.cosid.segment.SegmentChainId
- getHost() - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
-
Gets the proxy server host URL.
- getHostAddress() - Method in interface me.ahoo.cosid.machine.HostAddressSupplier
-
Gets the host address.
- getHostAddress() - Method in class me.ahoo.cosid.machine.LocalHostAddressSupplier
- getId() - Method in exception me.ahoo.cosid.IntegerIdGenerator.IdOverflowException
-
Get the ID that caused the overflow.
- getId() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Gets the raw snowflake ID value.
- getId(Object) - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Get the ID value from the target object (always returns null for NotFound).
- getId(Object) - Method in interface me.ahoo.cosid.accessor.CosIdGetter
-
Gets the ID value from the target object.
- getId(Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
- getId(Object) - Method in class me.ahoo.cosid.accessor.field.FieldGetter
- getId(Object) - Method in class me.ahoo.cosid.accessor.method.MethodGetter
- getIdDeclaringClass() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the declaring class of the ID field.
- getIdDefinition() - Method in class me.ahoo.cosid.accessor.AbstractIdMetadata
- getIdDefinition() - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Get the ID definition (always returns null for NotFound).
- getIdDefinition() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the ID definition.
- getIdField() - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Get the ID field (always returns null for NotFound).
- getIdField() - Method in class me.ahoo.cosid.accessor.IdDefinition
-
Get the field that should receive the generated ID.
- getIdField() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the ID field from the definition.
- getIdField() - Method in exception me.ahoo.cosid.accessor.IdTypeNotSupportException
-
Gets the unsupported ID field.
- getIdGenerator() - Method in class me.ahoo.cosid.accessor.AbstractIdMetadata
- getIdGenerator() - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Get the ID generator (always returns null for NotFound).
- getIdGenerator() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the ID generator.
- getIdSegment() - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Gets the ID segment for this chain.
- getIdSize() - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- getIdSize() - Method in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- getIdType() - Method in class me.ahoo.cosid.accessor.IdDefinition
-
Get the type of the ID field.
- getIdType() - Method in interface me.ahoo.cosid.accessor.IdMetadata
-
Gets the type of the ID field.
- getIncrementMaxIdSql() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- getInitCosIdMachineTableSql() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Gets the DDL for creating the
cosid_machinetable. - getInitCosidTableSql() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- getInitialDelay() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Gets the initial delay before starting guarding.
- getInitIdSegmentSql() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- getInitInstanceIdIdxSql() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Gets the DDL for creating the
idx_instance_idindex. - getInitNamespaceIdxSql() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Gets the DDL for creating the
idx_namespaceindex. - getInstanceId() - Method in class me.ahoo.cosid.machine.InstanceId
-
Gets the instance identifier string.
- getInstanceId() - Method in class me.ahoo.cosid.machine.lease.Lease
- getInstanceId() - Method in exception me.ahoo.cosid.machine.MachineIdLostException
-
Gets the instance ID.
- getInstanceId() - Method in exception me.ahoo.cosid.machine.MachineIdOverflowException
-
Gets the instance ID.
- getInstanceId() - Method in class me.ahoo.cosid.machine.NamespacedInstanceId
-
Gets the instance ID.
- getInstanceId() - Method in exception me.ahoo.cosid.machine.NotFoundMachineStateException
-
Gets the instance ID.
- getInstanceId() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the unique instance identifier.
- getJdbc() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the JDBC configuration.
- getJdbc() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- getJobId() - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Gets the unique job identifier.
- getJobId() - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
- getKey() - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
-
Gets the grouping key.
- getKind() - Method in interface me.ahoo.cosid.stat.Stat
-
Gets the kind/type of this stat.
- getLastMaxId() - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
-
The largest max id this distributor got so far,
0before the first one. - getLastTimestamp() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- getLastTimestamp() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Get the timestamp of the last ID that was generated.
- getLastTimestamp() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- getLastTimestamp() - Method in class me.ahoo.cosid.cosid.RadixCosIdGenerator
- getLastTimestamp() - Method in class me.ahoo.cosid.internal.TimestampSequencer
- getLastTimestamp() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getLastTimestamp() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- getLastTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.ClockBackwardsException
-
Gets the last timestamp.
- getLastTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.ClockTooManyBackwardsException
-
Gets the last timestamp.
- getLastTimestamp() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- getLastTimestamp() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the timestamp of the last ID that was generated.
- getLastTimestamp() - Method in class me.ahoo.cosid.snowflake.StringSnowflakeId
- getLastTimeStamp() - Method in class me.ahoo.cosid.machine.MachineState
-
Get the last activity timestamp.
- getLastTimestampAsMilliseconds() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- getLastTimestampAsMilliseconds() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- getLastTimestampAsMilliseconds() - Method in class me.ahoo.cosid.snowflake.SecondSnowflakeId
- getLastTimestampAsMilliseconds() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the last generated timestamp in milliseconds for clock synchronization.
- getLastTimestampAsMilliseconds() - Method in class me.ahoo.cosid.snowflake.StringSnowflakeId
- getLease() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- getLease() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- getLease(String, InstanceId) - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
- getLease(String, InstanceId) - Method in class me.ahoo.cosid.machine.GuardDistribute
-
The lease that keeps the distributed machine id usable, see
MachineIdLease. - getLease(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
The lease of a registered instance, renewed by every successful guard.
- getLeaseManager() - Method in class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- getLocal() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage
-
Gets the local storage configuration.
- getLocalStateInterval() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Gets how often the local machine state is refreshed.
- getLower() - Method in class me.ahoo.cosid.sharding.IntervalTimeline.Interval
-
Gets the lower bound.
- getMachineBit() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getMachineBit() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the number of bits used for the machine ID portion.
- getMachineBit() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the number of bits allocated for machine ID.
- getMachineBit() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the number of bits allocated for machine ID.
- getMachineBit() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getMachineBit() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- getMachineCharSize() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Gets the maximum character size for machine ID in decimal representation.
- getMachineId() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- getMachineId() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Get the machine ID assigned to this generator.
- getMachineId() - Method in class me.ahoo.cosid.cosid.CosIdState
-
Gets the machine ID component.
- getMachineId() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- getMachineId() - Method in class me.ahoo.cosid.cosid.RadixCosIdGenerator
- getMachineId() - Method in class me.ahoo.cosid.machine.lease.Lease
- getMachineId() - Method in class me.ahoo.cosid.machine.MachineId
-
Gets the machine ID value.
- getMachineId() - Method in class me.ahoo.cosid.machine.MachineState
-
Get the machine ID.
- getMachineId() - Method in class me.ahoo.cosid.machine.ManualMachineIdDistributor
-
Gets the machine ID.
- getMachineId() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getMachineId() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- getMachineId() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- getMachineId() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the machine ID assigned to this generator.
- getMachineId() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Gets the machine ID component.
- getMachineId() - Method in class me.ahoo.cosid.snowflake.StringSnowflakeId
- getMachineId() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Manual
-
Gets the manually assigned machine ID.
- getMachineProperties() - Method in class me.ahoo.cosid.spring.boot.starter.store.MachineStoreContext
- getMachineState() - Method in exception me.ahoo.cosid.machine.MachineIdLostException
-
Gets the machine state.
- getMachineStateStorage() - Method in class me.ahoo.cosid.spring.boot.starter.store.MachineStoreContext
- getManual() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the manual configuration.
- getMaxId() - Method in class me.ahoo.cosid.converter.RadixIdConverter
-
Gets the maximum ID representable with this char size.
- getMaxId() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the maximum ID in this segment.
- getMaxId() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the maximum ID in this segment.
- getMaxId() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getMaxId() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- getMaxMachineId() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getMaxMachineId() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the maximum machine ID value that can be represented.
- getMaxPrefetchDistance() - Method in class me.ahoo.cosid.segment.SegmentChainId
-
Get the head of the segment chain.
- getMaxPrefetchDistance() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Gets the maximum number of segments a single prefetch may request.
- getMaxRetries() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- getMaxSequence() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getMaxSequence() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the maximum sequence value that can be represented.
- getMaxSleepMs() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- getMaxTimestamp() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getMaxTimestamp() - Method in exception me.ahoo.cosid.snowflake.exception.TimestampOverflowException
-
Gets the max timestamp.
- getMaxTimestamp() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the maximum timestamp value that can be represented.
- getMode() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the mode of segment ID generation.
- getMode() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getMongo() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the MongoDB configuration.
- getMongo() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- getMsg() - Method in class me.ahoo.cosid.proxy.api.ErrorResponse
- getName() - Method in exception me.ahoo.cosid.jdbc.exception.NotFoundMaxIdException
- getName() - Method in exception me.ahoo.cosid.jdbc.exception.SegmentNameMissingException
- getName() - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
- getName() - Method in interface me.ahoo.cosid.segment.concurrent.PrefetchWorker
-
Gets the worker name.
- getName() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- getName() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- getName() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Get the name for this distributor.
- getName() - Method in class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Gets the segment name.
- getName() - Method in class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Get the name for this distributor.
- getName() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getName() - Method in class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Get the name for this distributor.
- getNamespace() - Method in class me.ahoo.cosid.machine.lease.Lease
- getNamespace() - Method in exception me.ahoo.cosid.machine.MachineIdLostException
-
Gets the namespace.
- getNamespace() - Method in class me.ahoo.cosid.machine.NamespacedInstanceId
-
Gets the namespace.
- getNamespace() - Method in exception me.ahoo.cosid.machine.NotFoundMachineStateException
-
Gets the namespace.
- getNamespace() - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
- getNamespace() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- getNamespace() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- getNamespace() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Get the namespace for this distributor.
- getNamespace() - Method in class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Gets the namespace.
- getNamespace() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the namespace for ID generation.
- getNamespace() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Gets the configured namespace for ID generation.
- getNamespace() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getNamespace() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getNamespace() - Method in class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Get the namespace for this distributor.
- getNamespace() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getNamespace() - Method in class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Get the namespace for this distributor.
- getNamespacedName() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Get the namespaced name for this distributor.
- getNamespacedName() - Method in class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Gets the full namespaced name.
- getNamespacedName() - Method in exception me.ahoo.cosid.segment.IdSegmentRollbackException
- getNamespacedName() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getNamespacedName(String, String) - Static method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Create a namespaced name from namespace and name components.
- getNext() - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Gets the next segment in the chain.
- getNext() - Method in exception me.ahoo.cosid.segment.NextIdSegmentExpiredException
-
Gets the invalid next segment.
- getNextId() - Method in class me.ahoo.cosid.activiti.ActivitiIdGenerator
- getNextId() - Method in class me.ahoo.cosid.flowable.FlowableIdGenerator
- getNextMaxId() - Method in exception me.ahoo.cosid.segment.IdSegmentRollbackException
- getNextMinMaxId() - Method in exception me.ahoo.cosid.segment.IdSegmentRollbackException
- getNode() - Method in class me.ahoo.cosid.sharding.IntervalTimeline.Interval
-
Gets the node name.
- getOffset() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the offset (starting ID) of this segment.
- getOffset() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the offset (starting ID) of this segment.
- getOffset() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getOffset() - Method in class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Gets the starting offset.
- getOffset() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- getOffset() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getOffset() - Method in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- getOperation() - Method in exception me.ahoo.cosid.spring.redis.RedisCommandTimeoutException
- getOrder() - Method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- getParser() - Method in class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
-
Gets the parser.
- getParser() - Method in class me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
- getParser() - Method in interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
-
Gets the state parser.
- getPattern() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- getPattern() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.Group
- getPhase() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
- getPort() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the port number for this instance.
- getPrefetchDistance() - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Get the job ID for this prefetch job.
- getPrefetchPeriod() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Gets the prefetch period.
- getPrefetchTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Gets the timeout of each background prefetch.
- getPrefetchWorker() - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Gets the prefetch worker for this job.
- getPrefetchWorker() - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Get the prefetch worker for this job.
- getPrefetchWorker() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Gets the prefetch worker configuration.
- getPrefix() - Method in class me.ahoo.cosid.converter.PrefixIdConverter
-
Gets the prefix.
- getPrefix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the static prefix.
- getProcessId() - Method in enum class me.ahoo.cosid.util.ProcessId
-
Gets the process ID.
- getProvider() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
- getProvider() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the map of named ID definitions.
- getProvider() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- getProxy() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Gets the proxy configuration properties.
- getQueryTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
- getQueryTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- getRadix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the radix62 configuration.
- getRadix36() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the radix36 configuration.
- getReadTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- getRedis() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the Redis configuration.
- getRedis() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- getRenewedAt() - Method in class me.ahoo.cosid.machine.lease.Lease
-
The store time of the last claim or renewal: the lease expires a safe-guard duration after it.
- getRequired(String) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get an ID generator by its name, throwing an exception if not found.
- getRequired(String, Class<T>) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get an ID generator by its name and type, throwing an exception if not found.
- getRetry() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- getSafeDistance() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Gets the safe distance for chain generation.
- getSafeGuardAt(Duration, boolean) - Static method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Calculate the safe guard timestamp.
- getSafeGuardDuration() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the effective safe guard duration based on guarder configuration.
- getSafeGuardDuration() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Gets the safe guard duration.
- getSafeGuardDuration() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- getSegmentIdProperties() - Method in class me.ahoo.cosid.spring.boot.starter.store.SegmentStoreContext
- getSegments() - Method in class me.ahoo.cosid.segment.MergedIdSegment
-
Gets the number of sub-segments.
- getSequence() - Method in class me.ahoo.cosid.cosid.CosIdState
-
Gets the sequence number component.
- getSequence() - Method in class me.ahoo.cosid.internal.TimestampSequencer
- getSequence() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the current sequence number within this segment.
- getSequence() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the current sequence number within this segment.
- getSequence() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getSequence() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- getSequence() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Gets the sequence number component.
- getSequenceBit() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getSequenceBit() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the number of bits used for the sequence portion.
- getSequenceBit() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the number of bits allocated for sequence number.
- getSequenceBit() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getSequenceCharSize() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Gets the maximum character size for sequence in decimal representation.
- getSequenceResetThreshold() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the sequence reset threshold.
- getSequenceResetThreshold() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getServerTimeSql() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
- getSessionTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- getSetter() - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
-
Gets the setter.
- getSetter() - Method in class me.ahoo.cosid.accessor.method.MethodSetter
-
Gets the setter method.
- getShare() - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- getShare() - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Get the shared (default) ID generator.
- getShare() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the shared ID definition configuration.
- getShare() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- getSingleStep() - Method in class me.ahoo.cosid.segment.MergedIdSegment
-
Gets the step size for each sub-segment.
- getSpinThreshold() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.ClockBackwards
-
Gets the spin threshold for clock synchronization.
- getStable() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets whether the machine ID should be stable across restarts.
- getStartInterval() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
-
Gets the start interval.
- getStat(String) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdReadOnlyEndpoint
- getStateLocation() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage.Local
-
Gets the file system path for state storage.
- getStateParser() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- getStateParser() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Get the state parser used to convert between ID states and string representations.
- getStateParser() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- getStateParser() - Method in class me.ahoo.cosid.cosid.RadixCosIdGenerator
- getStateStorage() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Gets the state storage configuration.
- getStep() - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
- getStep() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the step size for ID allocation.
- getStep() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- getStep() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- getStep() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the step size for ID allocation.
- getStep() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getStep() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Get the step size for ID segments.
- getStep() - Method in class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Gets the step size.
- getStep() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- getStep() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getStep() - Method in class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Get the step size for ID segments.
- getStep() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getStep() - Method in class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Get the step size for ID segments.
- getStep(int) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Get the total step size for the specified number of segments.
- getStepWithSegments() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- getStore() - Method in class me.ahoo.cosid.machine.lease.MachineLeaseManager
- getStore() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- getSuffix() - Method in class me.ahoo.cosid.converter.SuffixIdConverter
-
Gets the suffix.
- getSuffix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the static suffix.
- getSystemSecondTime() - Static method in interface me.ahoo.cosid.util.Clock
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Redis
-
Gets the Redis operation timeout.
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Zookeeper
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Mongo
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Redis
- getTimeout() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Zookeeper
- getTimeout() - Method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
- getTimeout() - Method in exception me.ahoo.cosid.spring.redis.RedisCommandTimeoutException
- getTimeout() - Method in class me.ahoo.cosid.util.CallTimeout
- getTimestamp() - Method in class me.ahoo.cosid.cosid.CosIdState
-
Gets the timestamp component.
- getTimestamp() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
-
Gets the timestamp when this ID was generated.
- getTimestamp(long) - Method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- getTimestamp(long) - Method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- getTimestamp(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Converts a time difference to a LocalDateTime.
- getTimestampBit() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- getTimestampBit() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get the number of bits used for the timestamp portion.
- getTimestampBit() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the number of bits allocated for timestamp.
- getTimestampBit() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getTimestampUnit() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- getToken() - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- getToString() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the toString configuration.
- getTotalMachineIds() - Method in exception me.ahoo.cosid.machine.MachineIdOverflowException
-
Gets the total number of machine IDs.
- getTtl() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the time-to-live for this segment.
- getTtl() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Get the time-to-live for this segment.
- getTtl() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- getTtl() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- getTtl() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Gets the time to live for ID segments.
- getTtl() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- getTtlAt() - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
-
Gets the TTL expiration timestamp.
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the type of CosId generator.
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Custom
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Gets the converter type.
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the distributor type.
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- getType() - Method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- getType() - Method in interface me.ahoo.cosid.spring.boot.starter.store.CosIdStoreProvider
-
The store type this provider serves, compared ignoring case.
- getUnit() - Method in class me.ahoo.cosid.sharding.IntervalStep
-
Gets the time unit.
- getUri() - Static method in class me.ahoo.cosid.test.container.RedisLauncher
-
Redis URI in the form
redis://host:port. - getValidUntil() - Method in class me.ahoo.cosid.machine.MachineIdLease
- getValue() - Method in class me.ahoo.cosid.segment.grouped.GroupedId
- getVersion() - Method in class me.ahoo.cosid.machine.lease.Lease
- getVersion() - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Gets the version number of this chain.
- getWatermark() - Method in class me.ahoo.cosid.machine.lease.Lease
-
The last timestamp the machine id may have been used for: the owner waits until its clock passes it.
- getZoneId() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Gets the time zone used for timestamp conversion.
- getZoneId() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Gets the time zone for friendly format generators.
- getZoneId() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- getZookeeper() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Gets the ZooKeeper configuration.
- getZookeeper() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- GracefullyCloser() - Constructor for class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService.GracefullyCloser
- group() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the group key for this segment.
- group() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- group() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- group() - Method in interface me.ahoo.cosid.segment.grouped.Grouped
-
Gets the grouping key for this object.
- group() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- group() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- Group() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.Group
- groupBySupplier() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
-
Gets the group supplier.
- GroupBySupplier - Interface in me.ahoo.cosid.segment.grouped
-
Supplier of
GroupedKeyfor grouping related ID segments. - Grouped - Interface in me.ahoo.cosid.segment.grouped
-
Interface for objects that can be grouped for sharding purposes.
- GroupedBinding(GroupedKey, IdSegmentDistributor) - Constructor for class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
-
Creates a binding.
- GroupedId - Class in me.ahoo.cosid.segment.grouped
-
An id together with the group of the segment it came from.
- GroupedId(GroupedKey, long) - Constructor for class me.ahoo.cosid.segment.grouped.GroupedId
- GroupedIdSegmentDistributor - Interface in me.ahoo.cosid.segment.grouped
-
Extension of IdSegmentDistributor that supports ID grouping.
- GroupedIdSegmentDistributorFactory - Class in me.ahoo.cosid.segment.grouped
-
Factory for creating grouped ID segment distributors.
- GroupedIdSegmentDistributorFactory(GroupBySupplier, IdSegmentDistributorFactory) - Constructor for class me.ahoo.cosid.segment.grouped.GroupedIdSegmentDistributorFactory
-
Creates a factory with grouping support.
- GroupedIdSegmentDistributorSpec - Class in me.ahoo.cosid.test.segment.distributor
- GroupedIdSegmentDistributorSpec() - Constructor for class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- GroupedKey - Class in me.ahoo.cosid.segment.grouped
-
Key used for grouping/sharding of ID segments.
- GroupedKey(String, long) - Constructor for class me.ahoo.cosid.segment.grouped.GroupedKey
-
Creates a new GroupedKey.
- GroupedPrefixConverterStat - Class in me.ahoo.cosid.stat.converter
-
Grouped prefix converter stat with delimiter configuration.
- GroupedPrefixConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.GroupedPrefixConverterStat
- GroupedPrefixIdConverter - Class in me.ahoo.cosid.converter
-
Converter that prepends a dynamic group key as prefix to string IDs.
- GroupedPrefixIdConverter(String, IdConverter) - Constructor for class me.ahoo.cosid.converter.GroupedPrefixIdConverter
-
Creates a grouped prefix converter.
- groupedSupplier() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- GroupPrefix() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- guard() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- guard(String, String, boolean, String, Integer, Long) - Method in interface me.ahoo.cosid.proxy.api.MachineApi
-
Guard a machine ID.
- guard(String, InstanceId, Duration) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- guard(String, InstanceId, Duration) - Method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Guard a machine ID with a heartbeat mechanism.
- Guard - Class in me.ahoo.cosid.test.machine.distributor
-
Guard .
- Guard(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.Guard
- guardDistribute(MachineIdDistributor, MachineIdGuarder) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- GuardDistribute - Class in me.ahoo.cosid.machine
- GuardDistribute(MachineIdDistributor, MachineIdGuarder) - Constructor for class me.ahoo.cosid.machine.GuardDistribute
- Guarder() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
- guardFilter(String, InstanceId, MachineState) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- GuardianState - Class in me.ahoo.cosid.machine
-
Represents the state of a machine ID guardian operation.
- GuardianState() - Constructor for class me.ahoo.cosid.machine.GuardianState
- guardLost() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- GuardLost - Class in me.ahoo.cosid.test.machine.distributor
-
GuardWhenLost .
- GuardLost(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.GuardLost
- guardRemote(String, InstanceId, MachineState, Duration) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- guardRemote(String, InstanceId, MachineState, Duration) - Method in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- guardRemote(String, InstanceId, MachineState, Duration) - Method in class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- guardRemote(String, InstanceId, MachineState, Duration) - Method in class me.ahoo.cosid.machine.ManualMachineIdDistributor
- guardUpdate(long) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
H
- hasFailure() - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Checks if any registered instance has failed guarding.
- hashCode() - Method in class me.ahoo.cosid.cosid.CosIdState
- hashCode() - Method in class me.ahoo.cosid.machine.InstanceId
- hashCode() - Method in class me.ahoo.cosid.machine.lease.Lease
- hashCode() - Method in class me.ahoo.cosid.machine.MachineId
- hashCode() - Method in class me.ahoo.cosid.machine.MachineState
-
Get the hash code for this machine state.
- hashCode() - Method in class me.ahoo.cosid.machine.NamespacedInstanceId
- hashCode() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.ahoo.cosid.proxy.api.LeaseResponse
-
Returns a hash code value for this object.
- hashCode() - Method in class me.ahoo.cosid.proxy.api.MachineStateResponse
- hashCode() - Method in record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.ahoo.cosid.proxy.api.RenewRequest
-
Returns a hash code value for this object.
- hashCode() - Method in class me.ahoo.cosid.segment.grouped.GroupedId
- hashCode() - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
- hashCode() - Method in class me.ahoo.cosid.sharding.ExactCollection
- hashCode() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
- hashCode() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Returns a hash code value for this object.
- hashTag(String) - Static method in class me.ahoo.cosid.spring.redis.RedisKeys
-
Wrap a key in a hash tag, so that every key of one namespace lands in the same Redis Cluster slot.
- health() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineIdHealthIndicator
-
Performs a health check on the machine ID guarding system.
- HostAddressSupplier - Interface in me.ahoo.cosid.machine
-
Functional interface for providing host address.
- HOSTNAME_KEY - Static variable in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- hostNameSupplier() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdHostNameAutoConfiguration
- hungry() - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Signals this job is hungry and needs prefetch.
I
- id(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Sets the raw snowflake ID value.
- ID_FIELD - Static variable in interface me.ahoo.cosid.mongo.Documents
- ID_KEY - Static variable in class me.ahoo.cosid.activiti.ActivitiIdGenerator
-
The key of the system property that can be used to set the id generator name.
- ID_KEY - Static variable in class me.ahoo.cosid.axon.CosIdIdentifierFactory
- ID_KEY - Static variable in class me.ahoo.cosid.flowable.FlowableIdGenerator
-
The key of the system property that can be used to set the id generator name.
- idAnnotationDefinitionParser() - Method in class me.ahoo.cosid.spring.boot.starter.jdbc.CosIdJdbcAutoConfiguration
- IdAnnotationDefinitionParser - Class in me.ahoo.cosid.spring.data.jdbc
-
Id Annotation FieldDefinitionParser.
- IdAnnotationDefinitionParser() - Constructor for class me.ahoo.cosid.spring.data.jdbc.IdAnnotationDefinitionParser
- idConverter - Variable in class me.ahoo.cosid.StringIdGeneratorDecorator
-
The custom ID converter for transforming numeric IDs to string format.
- idConverter() - Method in interface me.ahoo.cosid.IdGenerator
-
Get the ID converter used to convert
longtype IDs toString. - idConverter() - Method in class me.ahoo.cosid.provider.LazyIdGenerator
- idConverter() - Method in class me.ahoo.cosid.StringIdGeneratorDecorator
-
Get the custom ID converter used by this decorator.
- IdConverter - Interface in me.ahoo.cosid
-
ID converter for transforming between numeric and string representations of IDs.
- IdConverterDecorator<T extends IdGenerator> - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDecorator(T, IdConverterDefinition) - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- IdConverterDefinition - Class in me.ahoo.cosid.spring.boot.starter
-
Configuration definition for ID converters in CosId.
- IdConverterDefinition() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
- IdConverterDefinition.Custom - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.DatePrefix - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.Friendly - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.GroupPrefix - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.Radix - Class in me.ahoo.cosid.spring.boot.starter
-
Configuration for Radix62 ID converter.
- IdConverterDefinition.Radix36 - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.ToString - Class in me.ahoo.cosid.spring.boot.starter
- IdConverterDefinition.Type - Enum Class in me.ahoo.cosid.spring.boot.starter
-
Enumeration of supported ID converter types.
- IdDefinition - Class in me.ahoo.cosid.accessor
-
ID definition that describes how an ID field should be handled.
- IdDefinition() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- IdDefinition() - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- IdDefinition(Field) - Constructor for class me.ahoo.cosid.accessor.IdDefinition
-
Create a new ID definition with the default shared generator.
- IdDefinition(String, Field) - Constructor for class me.ahoo.cosid.accessor.IdDefinition
-
Create a new ID definition with the specified generator name.
- IdDefinition(String, Field, Class<?>) - Constructor for class me.ahoo.cosid.accessor.IdDefinition
-
Create a new ID definition with all parameters specified.
- idGenerator - Variable in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- IdGenerator - Interface in me.ahoo.cosid
-
Id Generator.
- IdGeneratorDecorator - Interface in me.ahoo.cosid
-
IdGenerator decorator for enhancing ID generator functionality.
- idGeneratorProvider - Variable in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdReadOnlyEndpoint
- idGeneratorProvider() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Provides the shared ID generator provider (default).
- IdGeneratorProvider - Interface in me.ahoo.cosid.provider
-
Container for managing named
StringIdGeneratorinstances. - IdGeneratorStat - Interface in me.ahoo.cosid.stat.generator
-
Statistical information for ID generators.
- IdMetadata - Interface in me.ahoo.cosid.accessor
-
Metadata container for ID field information.
- IdOverflowException(long) - Constructor for exception me.ahoo.cosid.IntegerIdGenerator.IdOverflowException
-
Create a new IdOverflowException for the specified ID.
- IdSegment - Interface in me.ahoo.cosid.segment
-
ID segment representing a contiguous block of IDs allocated for generation.
- IdSegmentChain - Class in me.ahoo.cosid.segment
-
Chained ID segment for lock-free segment chain ID generation.
- IdSegmentChain(long, IdSegment, boolean) - Constructor for class me.ahoo.cosid.segment.IdSegmentChain
-
Creates a new chain segment with explicit version.
- IdSegmentChain(IdSegmentChain, IdSegment, boolean) - Constructor for class me.ahoo.cosid.segment.IdSegmentChain
-
Creates a new chain segment linked to a previous chain.
- IdSegmentCollection - Interface in me.ahoo.cosid.mongo
- IdSegmentDistributor - Interface in me.ahoo.cosid.segment
-
ID segment distributor for allocating contiguous blocks of IDs in distributed systems.
- IdSegmentDistributorDefinition - Class in me.ahoo.cosid.segment
-
Definition for an ID segment distributor configuration.
- IdSegmentDistributorDefinition(String, String, long, long) - Constructor for class me.ahoo.cosid.segment.IdSegmentDistributorDefinition
-
Creates a new definition.
- idSegmentDistributorFactory(DataSource, JdbcIdSegmentInitializer) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdJdbcSegmentAutoConfiguration
- idSegmentDistributorFactory(SegmentClient) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdProxySegmentAutoConfiguration
- idSegmentDistributorFactory(CuratorFramework, RetryPolicy, SegmentIdProperties) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdZookeeperSegmentAutoConfiguration
- idSegmentDistributorFactory(StringRedisTemplate) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSpringRedisSegmentAutoConfiguration
- IdSegmentDistributorFactory - Interface in me.ahoo.cosid.segment
-
Factory interface for creating
IdSegmentDistributorinstances. - IdSegmentDistributorSpec - Class in me.ahoo.cosid.test.segment.distributor
-
IdSegmentDistributorSpec .
- IdSegmentDistributorSpec() - Constructor for class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- IdSegmentInitializer - Interface in me.ahoo.cosid.mongo
- IdSegmentOperates - Interface in me.ahoo.cosid.mongo
- IdSegmentRollbackException - Exception in me.ahoo.cosid.segment
-
The store handed out a segment max id below the last one plus the step: the range would overlap ids already issued.
- IdSegmentRollbackException(String, long, long) - Constructor for exception me.ahoo.cosid.segment.IdSegmentRollbackException
- IdSegmentRollbackException(String, String, Throwable) - Constructor for exception me.ahoo.cosid.segment.IdSegmentRollbackException
-
Raised for a rollback another party detected and described (e.g.
- IdTypeNotSupportException - Exception in me.ahoo.cosid.accessor
-
Exception thrown when an ID field type is not supported.
- IdTypeNotSupportException(Field) - Constructor for exception me.ahoo.cosid.accessor.IdTypeNotSupportException
-
Creates a new exception.
- IN_MEMORY - Static variable in interface me.ahoo.cosid.machine.MachineStateStorage
-
In-memory machine state storage instance.
- INCREMENT_MAX_ID_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
- INCREMENT_MAX_ID_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- incrementAndGet() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Atomically increment the sequence and return the new value.
- incrementAndGet() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Atomically increment the sequence and return the new value.
- incrementAndGet() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- incrementAndGet() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- incrementAndGet(String, long, long) - Method in interface me.ahoo.cosid.mongo.IdSegmentCollection
- incrementAndGet(String, long, long) - Method in class me.ahoo.cosid.mongo.MongoIdSegmentCollection
- incrementAndGetUpdates(long) - Static method in interface me.ahoo.cosid.mongo.IdSegmentOperates
- indexOf(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
- INIT_COSID_MACHINE_TABLE_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
-
Default SQL for creating the
cosid_machinetable. - INIT_COSID_MACHINE_TABLE_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- INIT_COSID_TABLE_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- INIT_COSID_TABLE_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- INIT_ID_SEGMENT_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- INIT_ID_SEGMENT_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- INIT_INSTANCE_ID_IDX_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
-
Default SQL for creating the
idx_instance_idindex oncosid_machine. - INIT_INSTANCE_ID_IDX_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- INIT_NAMESPACE_IDX_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
-
Default SQL for creating the
idx_namespaceindex oncosid_machine. - INIT_NAMESPACE_IDX_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
- initCosIdMachineTable() - Method in class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
- initCosIdTable() - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- INITIAL - Static variable in class me.ahoo.cosid.machine.GuardianState
-
The initial state representing no guarding operation has been performed.
- initIdSegment(String, long) - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- InMemoryMachineLeaseStore - Class in me.ahoo.cosid.test.machine.lease
-
A
MachineLeaseStorein memory, the reference implementation ofMachineLeaseStoreSpec. - InMemoryMachineLeaseStore() - Constructor for class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- InMemoryMachineStateStorage - Class in me.ahoo.cosid.machine
-
In-memory implementation of
MachineStateStorage. - InMemoryMachineStateStorage() - Constructor for class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- INSTANCE - Static variable in class me.ahoo.cosid.annotation.AnnotationDefinitionParser
-
Shared singleton instance.
- INSTANCE - Static variable in class me.ahoo.cosid.converter.Radix36IdConverter
-
Shared instance without padding.
- INSTANCE - Static variable in class me.ahoo.cosid.converter.Radix62IdConverter
-
A shared instance without padding.
- INSTANCE - Static variable in class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
-
Shared instance using millisecond parser.
- INSTANCE - Static variable in class me.ahoo.cosid.converter.ToStringIdConverter
-
Shared instance without padding.
- INSTANCE - Static variable in class me.ahoo.cosid.jvm.AtomicLongGenerator
-
Shared singleton instance.
- INSTANCE - Static variable in class me.ahoo.cosid.jvm.UuidGenerator
-
Shared singleton instance.
- INSTANCE - Static variable in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- INSTANCE - Static variable in class me.ahoo.cosid.machine.LocalHostAddressSupplier
- INSTANCE - Static variable in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
-
Shared singleton instance.
- INSTANCE - Static variable in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
-
Default parser instance with CosId epoch.
- INSTANCE - Static variable in class me.ahoo.cosid.spring.data.jdbc.IdAnnotationDefinitionParser
- INSTANCE - Static variable in class me.ahoo.cosid.test.MockIdGenerator
- INSTANCE_ID_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- instanceId() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns the value of the
instanceIdrecord component. - instanceId() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
instanceIdrecord component. - instanceId(HostAddressSupplier) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
Creates the instance identifier for this application instance.
- InstanceId - Class in me.ahoo.cosid.machine
-
Represents a specific deployment instance of a service.
- InstanceId(String, boolean) - Constructor for class me.ahoo.cosid.machine.InstanceId
-
Creates a new InstanceId.
- intAsString(boolean, int, int) - Static method in class me.ahoo.cosid.cosid.FriendlyIdStateParser
-
Converts an integer to string with optional padding.
- IntegerIdGenerator - Class in me.ahoo.cosid
-
Integer ID generator that adapts a long-based ID generator to produce integer IDs.
- IntegerIdGenerator(IdGenerator) - Constructor for class me.ahoo.cosid.IntegerIdGenerator
-
Create a new IntegerIdGenerator that wraps the specified long ID generator.
- IntegerIdGenerator.IdOverflowException - Exception in me.ahoo.cosid
-
Exception thrown when an ID exceeds the integer value range.
- intercept(Invocation) - Method in class me.ahoo.cosid.mybatis.CosIdPlugin
- Interval(LocalDateTime, String) - Constructor for class me.ahoo.cosid.sharding.IntervalTimeline.Interval
-
Creates an interval.
- IntervalStep - Class in me.ahoo.cosid.sharding
-
Represents a time interval step for sharding operations.
- IntervalStep(ChronoUnit, int) - Constructor for class me.ahoo.cosid.sharding.IntervalStep
-
Creates an interval step.
- IntervalTimeline - Class in me.ahoo.cosid.sharding
-
Timeline-based interval sharding algorithm.
- IntervalTimeline(String, Range<LocalDateTime>, IntervalStep, DateTimeFormatter) - Constructor for class me.ahoo.cosid.sharding.IntervalTimeline
-
Creates an IntervalTimeline sharding algorithm.
- IntervalTimeline.Interval - Class in me.ahoo.cosid.sharding
-
Represents a time interval with an associated node name.
- invoke() - Method in interface me.ahoo.cosid.util.Exceptions.CheckedFunction
- invokeUnchecked(Exceptions.CheckedFunction<T>) - Static method in class me.ahoo.cosid.util.Exceptions
-
invoke Checked Exception Function as Unchecked.
- isAvailable() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Check if this segment is available for ID generation.
- isAvailable() - Static method in class me.ahoo.cosid.test.container.MySqlLauncher
-
Whether a MySQL can be provided: an explicit URL is set or Docker is available.
- isAvailable() - Static method in class me.ahoo.cosid.test.container.PostgresLauncher
-
Whether a PostgreSQL can be provided: an explicit URL is set or Docker is available.
- isAvailable() - Static method in class me.ahoo.cosid.test.container.RedisLauncher
-
Whether a Redis can be provided: an explicit URI is set or Docker is available.
- isBeforePrefix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- isBeforePrefix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- isClockSync() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- isClosed() - Method in class me.ahoo.cosid.segment.SegmentChainId
-
Whether
SegmentChainId.close()was called. - isDuplicateKey(SQLException) - Static method in class me.ahoo.cosid.jdbc.JdbcSupport
-
Whether the exception (or any exception in its
chain) reports a duplicate key. - isEnableAutoInitCosidMachineTable() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Checks whether automatic
cosid_machinetable initialization is enabled. - isEnableAutoInitCosidTable() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- isEnableAutoInitIdSegment() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Checks if CosId generator auto-configuration is enabled.
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Checks if CosId is enabled.
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Checks if machine ID guarding is enabled.
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Checks if machine ID management is enabled.
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Checks if segment ID generation is enabled.
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.ShardIdDefinition
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.ShardIdDefinition
- isEnabled() - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- isEnabled() - Method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
- isEnabled() - Method in class me.ahoo.cosid.util.CallTimeout
- isExpired() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Check if this segment has expired.
- isFailed() - Method in class me.ahoo.cosid.machine.GuardianState
-
Checks if the guarding operation failed.
- isFailFast() - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Checks if generators fail fast when the machine id lease is lost or expired.
- isIsolated() - Method in class me.ahoo.cosid.spring.boot.starter.ProviderProperties
- isLost() - Method in class me.ahoo.cosid.machine.MachineIdLease
- isNullOrEmpty(String) - Static method in class me.ahoo.cosid.internal.Checks
- isolatedIdGeneratorProvider() - Method in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Provides an ID generator provider owned by this application context (
cosid.provider.isolated=true). - isOverflow() - Method in interface me.ahoo.cosid.segment.IdSegment
-
Check if this segment has overflowed.
- isOverflow(long) - Method in interface me.ahoo.cosid.segment.IdSegment
-
Check if the specified sequence number represents an overflow.
- isPadStart() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Checks if numeric fields are padded with leading zeros.
- isPadStart() - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Checks if padding is enabled for friendly format IDs.
- isPadStart() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Friendly
- isPadStart() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix
- isPadStart() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix36
- isPadStart() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.ToString
- isReleased() - Method in class me.ahoo.cosid.machine.MachineIdLease
- isRunning() - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Checks if the machine ID guarder is currently running.
- isRunning() - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Checks if the machine ID guarder is currently running.
- isRunning() - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
- isRunning() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
- isRunning() - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdLifecyclePrefetchWorkerExecutorService
- isSafeJavascript() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Check if this Snowflake ID generator is safe for use in JavaScript.
- isSafeJavascript() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Whether every id fits in a JavaScript number without losing precision.
- isSafeJavaScript(long) - Static method in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Checks if an ID is safe for JavaScript.
- isShutdownHook() - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Checks if shutdown hook is enabled.
- isStable() - Method in class me.ahoo.cosid.machine.InstanceId
-
Checks if this instance has a stable identity.
- isStable() - Method in class me.ahoo.cosid.machine.lease.Lease
- isValid(long) - Method in class me.ahoo.cosid.machine.MachineIdLease
- iterator() - Method in class me.ahoo.cosid.sharding.ExactCollection
J
- JAVA_SCRIPT_MAX_SAFE_NUMBER - Static variable in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Maximum safe JavaScript number value.
- JAVA_SCRIPT_MAX_SAFE_NUMBER_BIT - Static variable in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Maximum safe JavaScript number bit count.
- Jdbc() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
- Jdbc() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- JDBC - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- JDBC - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- JdbcIdSegmentDistributor - Class in me.ahoo.cosid.jdbc
-
Jdbc IdSegment Distributor.
- JdbcIdSegmentDistributor(String, String, long, String, String, DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
- JdbcIdSegmentDistributor(String, String, long, String, String, DataSource, Duration) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
-
Create a JDBC segment distributor.
- JdbcIdSegmentDistributor(String, String, long, DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
- JdbcIdSegmentDistributorFactory - Class in me.ahoo.cosid.jdbc
-
Jdbc IdSegment Distributor Factory.
- JdbcIdSegmentDistributorFactory(DataSource, boolean, JdbcIdSegmentInitializer, String, String) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributorFactory
- JdbcIdSegmentDistributorFactory(DataSource, boolean, JdbcIdSegmentInitializer, String, String, Duration) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentDistributorFactory
- jdbcIdSegmentInitializer(DataSource) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdJdbcSegmentAutoConfiguration
- JdbcIdSegmentInitializer - Class in me.ahoo.cosid.jdbc
-
Jdbc IdSegment Initializer.
- JdbcIdSegmentInitializer(String, String, DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- JdbcIdSegmentInitializer(DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- jdbcMachineIdDistributor(JdbcMachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdJdbcMachineIdDistributorAutoConfiguration
- jdbcMachineIdInitializer(DataSource) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdJdbcMachineIdDistributorAutoConfiguration
- JdbcMachineIdInitializer - Class in me.ahoo.cosid.jdbc
-
Jdbc MachineId Initializer.
- JdbcMachineIdInitializer(DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
- JdbcMachineIdInitializer(DataSource, String, String, String) - Constructor for class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
- jdbcMachineLeaseStore(JdbcMachineIdInitializer, DataSource) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdJdbcMachineIdDistributorAutoConfiguration
-
The machine id lease store on the
cosid_machinetable. - JdbcMachineLeaseStore - Class in me.ahoo.cosid.jdbc
-
MachineLeaseStoreon thecosid_machinetable, with conditional updates on(instance_id, last_timestamp)as the compare-and-set. - JdbcMachineLeaseStore(DataSource) - Constructor for class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- JdbcMachineLeaseStore(DataSource, Duration, String) - Constructor for class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
-
Create a JDBC lease store.
- JdbcSupport - Class in me.ahoo.cosid.jdbc
-
Shared JDBC helpers: statement query timeout, transaction rollback and duplicate key detection.
- jdbcUrl() - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Returns the value of the
jdbcUrlrecord component. - jdbcUrl() - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Returns the value of the
jdbcUrlrecord component. - Jsons - Class in me.ahoo.cosid.proxy
K
- KEY - Static variable in interface me.ahoo.cosid.spring.boot.starter.EnabledSuffix
-
The standard suffix for enabled/disabled configuration properties.
L
- LAST_FETCH_TIME_FIELD - Static variable in interface me.ahoo.cosid.mongo.IdSegmentOperates
- LAST_MAX_ID_FIELD - Static variable in interface me.ahoo.cosid.mongo.IdSegmentOperates
- LAST_TIMESTAMP_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- lastTimestamp - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Timestamp of the last generated ID.
- layout() - Method in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
- layout() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- layout() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- layout() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
The bit layout of the ids.
- layout() - Method in class me.ahoo.cosid.snowflake.StringSnowflakeId
- LazyIdGenerator - Class in me.ahoo.cosid.provider
-
Lazy loading IdGenerator.
- LazyIdGenerator(String) - Constructor for class me.ahoo.cosid.provider.LazyIdGenerator
-
Creates a lazy generator with default provider.
- LazyIdGenerator(String, IdGeneratorProvider) - Constructor for class me.ahoo.cosid.provider.LazyIdGenerator
-
Creates a lazy generator with custom provider.
- lease() - Method in record class me.ahoo.cosid.proxy.api.LeaseResponse
-
Returns the value of the
leaserecord component. - lease() - Method in record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Returns the value of the
leaserecord component. - lease() - Method in record class me.ahoo.cosid.proxy.api.RenewRequest
-
Returns the value of the
leaserecord component. - Lease - Class in me.ahoo.cosid.machine.lease
-
A machine id held by an instance, as stored by a
MachineLeaseStore. - Lease(String, InstanceId, int, long, long, long) - Constructor for class me.ahoo.cosid.machine.lease.Lease
-
Create a lease.
- LeasedCosIdGenerator - Class in me.ahoo.cosid.cosid
-
CosIdGenerator that refuses to generate ids once the lease of its machine id is lost or expired.
- LeasedCosIdGenerator(CosIdGenerator, MachineIdLease) - Constructor for class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- LeasedSnowflakeId - Class in me.ahoo.cosid.snowflake
-
SnowflakeId that refuses to generate ids once the lease of its machine id is lost or expired.
- LeasedSnowflakeId(SnowflakeId, MachineIdLease) - Constructor for class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- LeaseDto - Record Class in me.ahoo.cosid.proxy.api
-
A machine id lease on the wire.
- LeaseDto(String, String, boolean, int, long, long, long) - Constructor for record class me.ahoo.cosid.proxy.api.LeaseDto
-
Creates an instance of a
LeaseDtorecord class. - leaseExpiresExactlyAtExpiredBefore() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- LeaseResponse - Record Class in me.ahoo.cosid.proxy.api
-
The result of a claim or a renewal.
- LeaseResponse(LeaseDto) - Constructor for record class me.ahoo.cosid.proxy.api.LeaseResponse
-
Creates an instance of a
LeaseResponserecord class. - LeaseStoreMachineIdDistributor - Class in me.ahoo.cosid.machine.lease
- LeaseStoreMachineIdDistributor(MachineLeaseManager, MachineLeaseManager, MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
-
Create a distributor whose distribution, usually once at startup, runs on its own lease manager, for example on a store with a longer timeout: the first call also pays for connecting.
- LeaseStoreMachineIdDistributor(MachineLeaseManager, MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- LeaseStoreMachineIdDistributor(MachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- lenientFormat(String, Object...) - Static method in class me.ahoo.cosid.internal.Checks
-
Replaces each
%sintemplatewith the next argument; arguments left over are appended in square brackets. - lifecycleSegmentChainId(PrefetchWorkerExecutorService) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSegmentAutoConfiguration
- Local() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage.Local
- LOCAL - Static variable in interface me.ahoo.cosid.machine.MachineStateStorage
-
Local machine state storage instance.
- LocalDateTimeConvert - Class in me.ahoo.cosid.util
-
type Convert tool class of
LocalDateTime. - LocalDateTimeConvertor - Interface in me.ahoo.cosid.sharding
- LocalHostAddressSupplier - Class in me.ahoo.cosid.machine
- LocalHostAddressSupplier() - Constructor for class me.ahoo.cosid.machine.LocalHostAddressSupplier
- LocalMachineStateStorage - Class in me.ahoo.cosid.machine
-
File-based machine state storage.
- LocalMachineStateStorage() - Constructor for class me.ahoo.cosid.machine.LocalMachineStateStorage
-
Creates storage with default location.
- LocalMachineStateStorage(String) - Constructor for class me.ahoo.cosid.machine.LocalMachineStateStorage
-
Creates storage with specified location.
M
- machine(String, Function<MachineStoreContext, MachineIdDistributor>) - Static method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- MACHINE_ID_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- MACHINE_ID_LOST - Static variable in class me.ahoo.cosid.proxy.api.ErrorResponse
- MACHINE_ID_OVERFLOW - Static variable in class me.ahoo.cosid.proxy.api.ErrorResponse
- MACHINE_LEASE - Static variable in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- MachineApi - Interface in me.ahoo.cosid.proxy.api
- machineBit - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Number of bits allocated for the machine ID portion.
- machineBit - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Number of bits for machine ID portion.
- machineBit() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- machineBit() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns the value of the
machineBitrecord component. - MachineClient - Interface in me.ahoo.cosid.proxy.api
- machineId - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
The machine ID value for this instance.
- machineId() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
machineIdrecord component. - machineId(int) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Sets the machine ID component.
- machineId(GuardDistribute, InstanceId) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
Creates the machine ID for this instance.
- MachineId - Class in me.ahoo.cosid.machine
-
Logical machine identifier for distributed ID generation.
- MachineId(int) - Constructor for class me.ahoo.cosid.machine.MachineId
-
Creates a new MachineId.
- MachineIdDistribute - Interface in me.ahoo.cosid.machine
- machineIdDistributor(MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- MachineIdDistributor - Interface in me.ahoo.cosid.machine
-
Machine ID distributor for coordinating unique machine identifiers in distributed systems.
- MachineIdDistributorSpec - Class in me.ahoo.cosid.test.machine.distributor
-
DistributorSpec .
- MachineIdDistributorSpec() - Constructor for class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- machineIdGuarder(MachineIdDistributor) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
-
Creates the machine ID guarder for monitoring machine ID conflicts.
- MachineIdGuarder - Interface in me.ahoo.cosid.machine
-
MachineId Guarder.
- MachineIdGuarder.None - Class in me.ahoo.cosid.machine
-
A no-operation implementation of MachineIdGuarder.
- MachineIdHealthIndicator - Class in me.ahoo.cosid.spring.boot.starter.machine
-
A Spring Boot Actuator HealthIndicator that monitors the health of machine ID guarding.
- MachineIdHealthIndicator(MachineIdGuarder) - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineIdHealthIndicator
-
Constructs a MachineIdHealthIndicator with the specified MachineIdGuarder.
- MachineIdLease - Class in me.ahoo.cosid.machine
-
The local view of how long this instance may keep using its machine id.
- MachineIdLease(String, InstanceId, Duration) - Constructor for class me.ahoo.cosid.machine.MachineIdLease
- MachineIdLostException - Exception in me.ahoo.cosid.machine
-
Exception thrown when a machine ID is lost.
- MachineIdLostException(String, InstanceId, MachineState) - Constructor for exception me.ahoo.cosid.machine.MachineIdLostException
-
Creates a new exception.
- MachineIdOverflowException - Exception in me.ahoo.cosid.machine
-
Exception thrown when machine ID cannot be allocated.
- MachineIdOverflowException(int, InstanceId) - Constructor for exception me.ahoo.cosid.machine.MachineIdOverflowException
-
Creates a new exception.
- MachineInitializer - Interface in me.ahoo.cosid.mongo
- MachineLeaseApi - Interface in me.ahoo.cosid.proxy.api
-
Machine id leases, version 2: the
MachineLeaseStoreprimitives of the server's backend, passed through. - MachineLeaseClient - Interface in me.ahoo.cosid.proxy.api
-
The
MachineLeaseApiclient of a CosId proxy server. - MachineLeaseManager - Class in me.ahoo.cosid.machine.lease
-
The single machine id allocation algorithm, on top of any
MachineLeaseStore. - MachineLeaseManager(MachineLeaseStore) - Constructor for class me.ahoo.cosid.machine.lease.MachineLeaseManager
- MachineLeaseStore - Interface in me.ahoo.cosid.machine.lease
-
Storage primitives for machine id leases, with compare-and-set semantics.
- MachineLeaseStoreSpec - Class in me.ahoo.cosid.test.machine.lease
-
Compatibility kit of
MachineLeaseStore: every implementation must pass it unchanged. - MachineLeaseStoreSpec() - Constructor for class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- machineLeft - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Number of bits to shift machine ID left (equal to sequenceBit).
- machineLeft - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Number of bits to shift machine ID left.
- machineLeft() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Left shift of the machine id: the sequence bits.
- machineMask - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Mask for extracting machine ID from raw ID.
- MachineOperates - Interface in me.ahoo.cosid.mongo
- MachineProperties - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration properties for machine ID management in distributed systems.
- MachineProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Constructs a new MachineProperties instance with default configurations.
- MachineProperties.ClockBackwards - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for clock backwards synchronization.
- MachineProperties.Distributor - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for machine ID distribution strategies.
- MachineProperties.Guarder - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for machine ID guarding mechanisms.
- MachineProperties.Jdbc - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for JDBC-based machine ID distribution.
- MachineProperties.Manual - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for manual machine ID assignment.
- MachineProperties.Mongo - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for MongoDB-based machine ID distribution.
- MachineProperties.Redis - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for Redis-based machine ID distribution.
- MachineProperties.StateStorage - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for machine state storage mechanisms.
- MachineProperties.StateStorage.Local - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for local file system state storage.
- MachineProperties.Zookeeper - Class in me.ahoo.cosid.spring.boot.starter.machine
-
Configuration for ZooKeeper-based machine ID distribution.
- MachineState - Class in me.ahoo.cosid.machine
-
Machine state representing the status of a distributed machine instance.
- MachineState(int, long) - Constructor for class me.ahoo.cosid.machine.MachineState
-
Create a new MachineState with the specified machine ID and timestamp.
- MachineStateResponse - Class in me.ahoo.cosid.proxy.api
-
MachineStateResponse .
- MachineStateResponse(int, long) - Constructor for class me.ahoo.cosid.proxy.api.MachineStateResponse
- machineStateStorage() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- MachineStateStorage - Interface in me.ahoo.cosid.machine
-
Machine state storage for persisting machine state across restarts.
- MachineStoreContext - Class in me.ahoo.cosid.spring.boot.starter.store
-
What a
CosIdStoreProvidergets to create a machine id distributor. - MachineStoreContext(MachineProperties, MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.spring.boot.starter.store.MachineStoreContext
- Manual() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Manual
- MANUAL - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- ManualMachineIdDistributor - Class in me.ahoo.cosid.machine
-
Manual machine ID distributor.
- ManualMachineIdDistributor(int, MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.ManualMachineIdDistributor
-
Creates a manual distributor.
- markLost() - Method in class me.ahoo.cosid.machine.MachineIdLease
-
The remote store reported that the machine id now belongs to another instance.
- markReleased() - Method in class me.ahoo.cosid.machine.MachineIdLease
-
The machine id is about to be reverted on shutdown.
- MAX_CHAR_SIZE - Static variable in class me.ahoo.cosid.converter.Radix36IdConverter
-
Maximum character size (13 for full long range).
- MAX_CHAR_SIZE - Static variable in class me.ahoo.cosid.converter.Radix62IdConverter
-
The maximum character size for radix-62 encoded IDs.
- MAX_CLOCK_SKEW_MARGIN - Static variable in class me.ahoo.cosid.machine.MachineIdLease
-
Upper bound of the clock skew margin.
- MAX_CONCURRENT_CALLS - Static variable in class me.ahoo.cosid.util.CallTimeout
- MAX_CONCURRENT_COMMANDS - Static variable in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
-
Upper bound of concurrently running commands, shared with the other
CallTimeoutusers. - MAX_MACHINE_ID_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- maxCharSize(int, int) - Static method in class me.ahoo.cosid.converter.RadixIdConverter
-
Calculates maximum character size for a given radix and bit count.
- maxMachineId - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Maximum machine ID value representable by the machine ID bits.
- maxMachineId() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns the value of the
maxMachineIdrecord component. - maxMachineId() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
- maxMachineId(int) - Static method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Calculate the maximum machine ID for the specified bit size.
- maxOriginalId() - Method in exception me.ahoo.cosid.uncertainty.OriginalIdOverflowException
-
Gets the max original ID.
- maxOriginalId() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- maxSequence - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Maximum sequence value representable by the sequence bits.
- maxSequence() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
- maxTimestamp - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Maximum timestamp value representable by the timestamp bits.
- maxTimestamp() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
- me.ahoo.cosid - package me.ahoo.cosid
- me.ahoo.cosid.accessor - package me.ahoo.cosid.accessor
- me.ahoo.cosid.accessor.field - package me.ahoo.cosid.accessor.field
- me.ahoo.cosid.accessor.method - package me.ahoo.cosid.accessor.method
- me.ahoo.cosid.accessor.parser - package me.ahoo.cosid.accessor.parser
- me.ahoo.cosid.accessor.registry - package me.ahoo.cosid.accessor.registry
- me.ahoo.cosid.accessor.scanner - package me.ahoo.cosid.accessor.scanner
- me.ahoo.cosid.activiti - package me.ahoo.cosid.activiti
- me.ahoo.cosid.annotation - package me.ahoo.cosid.annotation
- me.ahoo.cosid.axon - package me.ahoo.cosid.axon
- me.ahoo.cosid.converter - package me.ahoo.cosid.converter
- me.ahoo.cosid.cosid - package me.ahoo.cosid.cosid
- me.ahoo.cosid.flowable - package me.ahoo.cosid.flowable
- me.ahoo.cosid.internal - package me.ahoo.cosid.internal
- me.ahoo.cosid.jackson - package me.ahoo.cosid.jackson
- me.ahoo.cosid.jdbc - package me.ahoo.cosid.jdbc
- me.ahoo.cosid.jdbc.exception - package me.ahoo.cosid.jdbc.exception
- me.ahoo.cosid.jvm - package me.ahoo.cosid.jvm
- me.ahoo.cosid.machine - package me.ahoo.cosid.machine
- me.ahoo.cosid.machine.k8s - package me.ahoo.cosid.machine.k8s
- me.ahoo.cosid.machine.lease - package me.ahoo.cosid.machine.lease
- me.ahoo.cosid.mongo - package me.ahoo.cosid.mongo
- me.ahoo.cosid.mybatis - package me.ahoo.cosid.mybatis
- me.ahoo.cosid.provider - package me.ahoo.cosid.provider
- me.ahoo.cosid.proxy - package me.ahoo.cosid.proxy
- me.ahoo.cosid.proxy.api - package me.ahoo.cosid.proxy.api
- me.ahoo.cosid.segment - package me.ahoo.cosid.segment
- me.ahoo.cosid.segment.concurrent - package me.ahoo.cosid.segment.concurrent
- me.ahoo.cosid.segment.grouped - package me.ahoo.cosid.segment.grouped
- me.ahoo.cosid.segment.grouped.date - package me.ahoo.cosid.segment.grouped.date
- me.ahoo.cosid.sharding - package me.ahoo.cosid.sharding
- me.ahoo.cosid.snowflake - package me.ahoo.cosid.snowflake
- me.ahoo.cosid.snowflake.exception - package me.ahoo.cosid.snowflake.exception
- me.ahoo.cosid.spring.boot.starter - package me.ahoo.cosid.spring.boot.starter
- me.ahoo.cosid.spring.boot.starter.activiti - package me.ahoo.cosid.spring.boot.starter.activiti
- me.ahoo.cosid.spring.boot.starter.actuate - package me.ahoo.cosid.spring.boot.starter.actuate
- me.ahoo.cosid.spring.boot.starter.axon - package me.ahoo.cosid.spring.boot.starter.axon
- me.ahoo.cosid.spring.boot.starter.cosid - package me.ahoo.cosid.spring.boot.starter.cosid
- me.ahoo.cosid.spring.boot.starter.flowable - package me.ahoo.cosid.spring.boot.starter.flowable
- me.ahoo.cosid.spring.boot.starter.jdbc - package me.ahoo.cosid.spring.boot.starter.jdbc
- me.ahoo.cosid.spring.boot.starter.machine - package me.ahoo.cosid.spring.boot.starter.machine
- me.ahoo.cosid.spring.boot.starter.mybatis - package me.ahoo.cosid.spring.boot.starter.mybatis
- me.ahoo.cosid.spring.boot.starter.segment - package me.ahoo.cosid.spring.boot.starter.segment
- me.ahoo.cosid.spring.boot.starter.snowflake - package me.ahoo.cosid.spring.boot.starter.snowflake
- me.ahoo.cosid.spring.boot.starter.store - package me.ahoo.cosid.spring.boot.starter.store
- me.ahoo.cosid.spring.boot.starter.zookeeper - package me.ahoo.cosid.spring.boot.starter.zookeeper
- me.ahoo.cosid.spring.data.jdbc - package me.ahoo.cosid.spring.data.jdbc
- me.ahoo.cosid.spring.redis - package me.ahoo.cosid.spring.redis
- me.ahoo.cosid.stat - package me.ahoo.cosid.stat
- me.ahoo.cosid.stat.converter - package me.ahoo.cosid.stat.converter
- me.ahoo.cosid.stat.generator - package me.ahoo.cosid.stat.generator
- me.ahoo.cosid.test - package me.ahoo.cosid.test
- me.ahoo.cosid.test.container - package me.ahoo.cosid.test.container
- me.ahoo.cosid.test.machine.distributor - package me.ahoo.cosid.test.machine.distributor
- me.ahoo.cosid.test.machine.lease - package me.ahoo.cosid.test.machine.lease
- me.ahoo.cosid.test.segment - package me.ahoo.cosid.test.segment
- me.ahoo.cosid.test.segment.distributor - package me.ahoo.cosid.test.segment.distributor
- me.ahoo.cosid.uncertainty - package me.ahoo.cosid.uncertainty
- me.ahoo.cosid.util - package me.ahoo.cosid.util
- me.ahoo.cosid.zookeeper - package me.ahoo.cosid.zookeeper
- MergedIdSegment - Class in me.ahoo.cosid.segment
-
Merged ID segment that divides a segment into multiple sub-segments.
- MergedIdSegment(int, IdSegment) - Constructor for class me.ahoo.cosid.segment.MergedIdSegment
-
Creates a merged segment.
- MESSAGE - Static variable in class me.ahoo.cosid.spring.boot.starter.MongoReactiveRemoved
- MethodGetter - Class in me.ahoo.cosid.accessor.method
-
ID getter that accesses via getter method.
- MethodGetter(Method) - Constructor for class me.ahoo.cosid.accessor.method.MethodGetter
-
Creates a getter for the specified method.
- MethodSetter - Class in me.ahoo.cosid.accessor.method
-
ID setter that accesses via setter method.
- MethodSetter(Method) - Constructor for class me.ahoo.cosid.accessor.method.MethodSetter
-
Creates a setter for the specified method.
- MILLISECOND - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition.TimestampUnit
- MillisecondSnowflakeId - Class in me.ahoo.cosid.snowflake
-
Millisecond-precision Snowflake ID generator.
- MillisecondSnowflakeId(int) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
Create a new MillisecondSnowflakeId with default configuration.
- MillisecondSnowflakeId(int, int) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
Create a new MillisecondSnowflakeId with custom machine bit configuration.
- MillisecondSnowflakeId(long, int, int, int, int) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
Create a new MillisecondSnowflakeId with custom bit configuration.
- MillisecondSnowflakeId(long, int, int, int, int, long) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeId
-
Create a new MillisecondSnowflakeId with full custom configuration.
- MillisecondSnowflakeIdStateParser - Class in me.ahoo.cosid.snowflake
-
Parser for millisecond-based SnowflakeId state.
- MillisecondSnowflakeIdStateParser(long, int, int, int) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
-
Creates a parser with default zone and no padding.
- MillisecondSnowflakeIdStateParser(long, int, int, int, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
-
Creates a parser with custom zone and padding.
- MillisecondSnowflakeIdStateParser(SnowflakeLayout, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
-
Creates a parser for ids of the given layout.
- MixedLeaseFormatSpec - Class in me.ahoo.cosid.test.machine.lease
-
Compatibility kit for the upgrade from 3.4: 3.4 instances (the 3.4 machine id distributor of a backend, writing the 3.4 format) and 4.0 instances (a
LeaseStoreMachineIdDistributoron the backend'sMachineLeaseStore) sharing one namespace never hold the same machine id, and each takes over the other's expired and released machine ids. - MixedLeaseFormatSpec() - Constructor for class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
- MockIdGenerator - Class in me.ahoo.cosid.test
-
Mock ID Generator for test.
- MockIdGenerator(String) - Constructor for class me.ahoo.cosid.test.MockIdGenerator
- MockIdSegmentDistributor - Class in me.ahoo.cosid.test.segment
-
In-memory
IdSegmentDistributorthat simulates network latency, for tests and benchmarks (moved fromIdSegmentDistributor.Mockin 4.0). - MockIdSegmentDistributor() - Constructor for class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Create a new Mock distributor with default configuration.
- MockIdSegmentDistributor(long, int) - Constructor for class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Create a new Mock distributor with custom configuration.
- mockInstance(int, boolean) - Static method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- ModCycle<T extends Number & Comparable<T>> - Class in me.ahoo.cosid.sharding
-
Modulo-based cyclical sharding algorithm.
- ModCycle(int, String) - Constructor for class me.ahoo.cosid.sharding.ModCycle
-
Creates a ModCycle sharding algorithm.
- ModSpec - Class in me.ahoo.cosid.test
- ModSpec(int, int, double, LongSupplier, Runnable) - Constructor for class me.ahoo.cosid.test.ModSpec
- Mongo() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
- Mongo() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Mongo
- MONGO - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- MONGO - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- MongoIdSegmentCollection - Class in me.ahoo.cosid.mongo
- MongoIdSegmentCollection(MongoCollection<Document>) - Constructor for class me.ahoo.cosid.mongo.MongoIdSegmentCollection
- MongoIdSegmentDistributor - Class in me.ahoo.cosid.mongo
-
Mongo IdSegment Distributor.
- MongoIdSegmentDistributor(String, String, long, long, IdSegmentCollection) - Constructor for class me.ahoo.cosid.mongo.MongoIdSegmentDistributor
- MongoIdSegmentDistributorFactory - Class in me.ahoo.cosid.mongo
-
Mongo IdSegment Distributor Factory.
- MongoIdSegmentDistributorFactory(MongoDatabase) - Constructor for class me.ahoo.cosid.mongo.MongoIdSegmentDistributorFactory
- MongoIdSegmentInitializer - Class in me.ahoo.cosid.mongo
- MongoIdSegmentInitializer(MongoDatabase) - Constructor for class me.ahoo.cosid.mongo.MongoIdSegmentInitializer
- MongoLauncher - Class in me.ahoo.cosid.test.container
- mongoMachineIdDistributor(MongoMachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMongoMachineIdDistributorAutoConfiguration
- MongoMachineInitializer - Class in me.ahoo.cosid.mongo
- MongoMachineInitializer(MongoDatabase) - Constructor for class me.ahoo.cosid.mongo.MongoMachineInitializer
- MongoMachineLeaseStore - Class in me.ahoo.cosid.mongo
-
MachineLeaseStoreon thecosid_machinecollection: every claim, renewal and release is one atomicfindOneAndUpdateor conditional update. - MongoMachineLeaseStore(MongoDatabase, Duration) - Constructor for class me.ahoo.cosid.mongo.MongoMachineLeaseStore
-
Create a MongoDB lease store.
- MongoReactiveRemoved - Class in me.ahoo.cosid.spring.boot.starter
-
MongoDB reactive support was removed in 4.0.
- MultipleIdNotSupportException - Exception in me.ahoo.cosid.accessor
-
Exception thrown when an entity has multiple @CosId fields.
- MultipleIdNotSupportException(Class<?>) - Constructor for exception me.ahoo.cosid.accessor.MultipleIdNotSupportException
-
Creates a new exception.
- MYSQL_SERVER_TIME_SQL - Static variable in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
-
Current time of a MySQL server in milliseconds.
- MySqlLauncher - Class in me.ahoo.cosid.test.container
-
Provides a real MySQL for backend contract tests.
- MySqlLauncher.Connection - Record Class in me.ahoo.cosid.test.container
-
JDBC connection settings.
N
- name - Variable in exception me.ahoo.cosid.jdbc.exception.NotFoundMaxIdException
- NamedDefinitionParser - Class in me.ahoo.cosid.accessor.parser
-
Parses fields by name to create
IdDefinition. - NamedDefinitionParser(String) - Constructor for class me.ahoo.cosid.accessor.parser.NamedDefinitionParser
-
Creates a parser for the specified field name.
- namespace() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
namespacerecord component. - NAMESPACE_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- NamespacedInstanceId - Class in me.ahoo.cosid.machine
-
Combines namespace with instance ID for unique identification.
- NamespacedInstanceId(String, InstanceId) - Constructor for class me.ahoo.cosid.machine.NamespacedInstanceId
-
Creates a new namespaced instance ID.
- namespacedMachineId(String, int) - Static method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Generate a namespaced machine ID string.
- Namespaces - Class in me.ahoo.cosid.spring.boot.starter
-
Utility class for namespace operations in CosId configuration.
- namespacesAreIsolated() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- NEVER - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
- NEVER - Static variable in class me.ahoo.cosid.segment.grouped.GroupedKey
-
Sentinel value indicating no grouping.
- NEW - Static variable in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
- newCustom() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- newIdGenerator(IdConverter) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- newIdGenerator(IdConverter) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdConverterDecorator
- newIdGenerator(IdConverter) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdConverterDecorator
- newNamespace(String) - Static method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
-
A unique namespace.
- newRadix() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- newRadix36() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- newRoot(boolean) - Static method in class me.ahoo.cosid.segment.IdSegmentChain
-
Creates a new root chain.
- newSnowflakeFriendly() - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- newSnowflakeFriendly() - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdConverterDecorator
- newToString(IdConverter) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDecorator
- next() - Method in class me.ahoo.cosid.internal.TimestampSequencer
-
Advance to the next (timestamp, sequence) pair; read it with
TimestampSequencer.getLastTimestamp()andTimestampSequencer.getSequence(). - next(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
-
Calculates the next time by adding the interval.
- nextIdSegment() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextIdSegment() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next ID segment with infinite time-to-live.
- nextIdSegment() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- nextIdSegment() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextIdSegment(int, long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- nextIdSegment(int, long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextIdSegment(int, long) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next ID segment with multiple segments and specified time-to-live.
- nextIdSegment(long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- nextIdSegment(long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextIdSegment(long) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next ID segment with the specified time-to-live.
- nextIdSegmentChain() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- nextIdSegmentChain() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextIdSegmentChain(IdSegmentChain) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextIdSegmentChain(IdSegmentChain) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next ID segment chain with default configuration.
- nextIdSegmentChain(IdSegmentChain, int, long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- nextIdSegmentChain(IdSegmentChain, int, long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextIdSegmentChain(IdSegmentChain, int, long) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next ID segment chain with custom configuration.
- NextIdSegmentExpiredException - Exception in me.ahoo.cosid.segment
-
Exception thrown when a next ID segment is invalid.
- NextIdSegmentExpiredException(IdSegment, IdSegment) - Constructor for exception me.ahoo.cosid.segment.NextIdSegmentExpiredException
-
Creates a new exception.
- nextIdSegmentWithSegmentsAndTtl() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextIdSegmentWithTtl() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextMachineIdPipeline(String) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- nextMaxId() - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextMaxId() - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next maximum ID using the default step size.
- nextMaxId() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextMaxId(long) - Method in class me.ahoo.cosid.segment.AbstractIdSegmentDistributor
- nextMaxId(long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor.GroupedBinding
- nextMaxId(long) - Method in class me.ahoo.cosid.segment.grouped.DefaultGroupedIdSegmentDistributor
- nextMaxId(long) - Method in interface me.ahoo.cosid.segment.IdSegmentDistributor
-
Allocate the next maximum ID for the specified step size.
- nextMaxId(long) - Method in class me.ahoo.cosid.test.segment.AtomicIdSegmentDistributor
-
Allocate the next maximum ID for the specified step size.
- nextMaxId(long) - Method in class me.ahoo.cosid.test.segment.MockIdSegmentDistributor
-
Allocate the next maximum ID for the specified step size.
- nextMaxId(String, String, long) - Method in interface me.ahoo.cosid.proxy.api.SegmentApi
- nextMaxIdConcurrent() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextMaxIdWhenBack() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- nextMaxIdWhenBack() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- nextMaxIdWithStep() - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- None() - Constructor for class me.ahoo.cosid.machine.MachineIdGuarder.None
- NONE - Static variable in class me.ahoo.cosid.machine.InstanceId
-
Sentinel value representing no instance.
- NONE - Static variable in interface me.ahoo.cosid.machine.MachineIdGuarder
- NONE - Static variable in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
-
No timeout: commands run on the caller thread, as before.
- NONE - Static variable in class me.ahoo.cosid.util.CallTimeout
-
No timeout: calls run on the caller thread.
- normalize(String, String) - Static method in class me.ahoo.cosid.spring.boot.starter.store.StoreTypes
-
The canonical form of a store type: its letters and digits, in lower case.
- NOT_FOUND - Static variable in interface me.ahoo.cosid.accessor.CosIdAccessor
-
A sentinel value representing a "not found" accessor.
- NOT_FOUND - Static variable in class me.ahoo.cosid.accessor.IdDefinition
-
A sentinel value representing a "not found" ID definition.
- NOT_FOUND - Static variable in class me.ahoo.cosid.machine.MachineState
-
A sentinel value representing a "not found" machine state.
- NOT_FOUND_LAST_STAMP - Static variable in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- NOT_FOUND_MACHINE_STATE - Static variable in class me.ahoo.cosid.proxy.api.ErrorResponse
- NOT_SET - Static variable in class me.ahoo.cosid.segment.IdSegmentChain
-
Sentinel value indicating next has not been set.
- NotFound() - Constructor for class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
- NotFoundIdGeneratorException - Exception in me.ahoo.cosid.provider
-
Exception thrown when an ID generator is not found.
- NotFoundIdGeneratorException(String) - Constructor for exception me.ahoo.cosid.provider.NotFoundIdGeneratorException
-
Creates a new exception.
- NotFoundMachineStateException - Exception in me.ahoo.cosid.machine
-
Exception thrown when machine state is not found.
- NotFoundMachineStateException(String, InstanceId) - Constructor for exception me.ahoo.cosid.machine.NotFoundMachineStateException
-
Creates a new exception.
- NotFoundMaxIdException - Exception in me.ahoo.cosid.jdbc.exception
-
Not Found Max Id Exception.
- NotFoundMaxIdException(String) - Constructor for exception me.ahoo.cosid.jdbc.exception.NotFoundMaxIdException
- now() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns the value of the
nowrecord component. - now() - Method in record class me.ahoo.cosid.proxy.api.RenewRequest
-
Returns the value of the
nowrecord component.
O
- OBJECT_MAPPER - Static variable in class me.ahoo.cosid.proxy.Jsons
- of(boolean, int) - Static method in class me.ahoo.cosid.converter.Radix36IdConverter
-
Gets an instance with specified parameters.
- of(boolean, int) - Static method in class me.ahoo.cosid.converter.Radix62IdConverter
-
Get a Radix62IdConverter instance with the specified parameters.
- of(int) - Static method in class me.ahoo.cosid.machine.MachineState
-
Create a new MachineState with the specified machine ID and current timestamp.
- of(int, long) - Static method in class me.ahoo.cosid.machine.MachineState
-
Create a new MachineState with the specified machine ID and timestamp.
- of(GroupedKey, long) - Static method in class me.ahoo.cosid.segment.grouped.GroupedId
- of(String) - Static method in class me.ahoo.cosid.machine.MachineState
-
Create a new MachineState from its string representation.
- of(String, boolean) - Static method in class me.ahoo.cosid.machine.InstanceId
-
Creates an InstanceId from an instance ID string.
- of(String, int, boolean) - Static method in class me.ahoo.cosid.machine.InstanceId
-
Creates an InstanceId from host and port.
- of(String, String) - Static method in class me.ahoo.cosid.proxy.api.ErrorResponse
- of(Duration) - Static method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
-
Create a command timeout.
- of(Duration) - Static method in class me.ahoo.cosid.util.CallTimeout
-
Create a call timeout.
- of(ChronoUnit) - Static method in class me.ahoo.cosid.sharding.IntervalStep
-
Creates an interval step with default amount of 1.
- of(ChronoUnit, int) - Static method in class me.ahoo.cosid.sharding.IntervalStep
-
Creates an interval step with custom amount.
- of(Lease) - Static method in record class me.ahoo.cosid.proxy.api.LeaseDto
- of(SnowflakeId) - Static method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- of(SnowflakeId) - Static method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- of(SnowflakeId) - Static method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Creates a parser for the given SnowflakeId instance.
- of(SnowflakeId, ZoneId) - Static method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- of(SnowflakeId, ZoneId) - Static method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- of(SnowflakeId, ZoneId, boolean) - Static method in class me.ahoo.cosid.snowflake.MillisecondSnowflakeIdStateParser
- of(SnowflakeId, ZoneId, boolean) - Static method in class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
- of(SnowflakeId, ZoneId, boolean) - Static method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Creates a parser for the given SnowflakeId instance with custom settings.
- ofFriendlyId(String) - Method in interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
-
Parses a friendly ID string to state.
- offset(char) - Static method in class me.ahoo.cosid.converter.RadixIdConverter
-
Gets the offset value for a digit character.
- offsetUnit(LocalDateTime, LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
-
Calculates the offset from start to time in unit increments.
- ofMillisecond(int) - Static method in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Creates a safe millisecond SnowflakeId with default safe configuration.
- ofMillisecond(long, int, int, int, int, long) - Static method in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Creates a safe millisecond SnowflakeId.
- ofSecond(int) - Static method in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Creates a safe second SnowflakeId with default safe configuration.
- ofSecond(long, int, int, int, int, long) - Static method in class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
-
Creates a safe second SnowflakeId.
- onBeforeConvert(Object) - Method in class me.ahoo.cosid.spring.data.jdbc.CosIdBeforeConvertCallback
- ONE_SECOND_PERIOD - Static variable in class me.ahoo.cosid.util.Clock.CacheClock
-
Tolerate a one-second time limit.
- ONE_STEP - Static variable in interface me.ahoo.cosid.segment.SegmentId
-
The default step size for segment allocation (1 ID at a time).
- oneStepIdKeepsItsGroupAcrossRollover() - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
-
With step 1 every id comes from its own call to the distributor: the id and its group must come from the same grouped counter even when the group rolls over in between, or "2026-1" could be issued twice.
- originalId() - Method in exception me.ahoo.cosid.uncertainty.OriginalIdOverflowException
-
Gets the original ID.
- originalIdBits() - Method in exception me.ahoo.cosid.uncertainty.OriginalIdOverflowException
-
Gets the original ID bits.
- originalIdBits() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- OriginalIdOverflowException - Exception in me.ahoo.cosid.uncertainty
-
Exception thrown when original ID exceeds maximum representable value.
- OriginalIdOverflowException(long, int, long) - Constructor for exception me.ahoo.cosid.uncertainty.OriginalIdOverflowException
-
Creates a new exception.
- OVERFLOW - Static variable in class me.ahoo.cosid.segment.DefaultIdSegment
-
A sentinel value representing an overflow segment.
- ownerFindsOutWhenItsLeaseIsStolenBetweenRenewals() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
P
- PAD_CHAR - Static variable in class me.ahoo.cosid.converter.RadixIdConverter
-
Padding character for fixed-width output.
- PAD_START - Static variable in class me.ahoo.cosid.converter.Radix36IdConverter
-
Shared instance with padding.
- PAD_START - Static variable in class me.ahoo.cosid.converter.Radix62IdConverter
-
A shared instance with padding.
- padStart - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Whether to pad numeric fields with leading zeros.
- padStart(String, int, char) - Static method in class me.ahoo.cosid.internal.Checks
-
Left-pads
stringwithpadChartominLength. - parse(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Parses a raw snowflake ID into SnowflakeIdState.
- parse(Class<?>) - Method in interface me.ahoo.cosid.accessor.parser.CosIdAccessorParser
-
Parses a class to create its accessor.
- parse(Class<?>) - Method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
- parse(String) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Parses a friendly ID string into SnowflakeIdState.
- parse(List<Class<?>>, Field) - Method in class me.ahoo.cosid.accessor.parser.CompositeFieldDefinitionParser
- parse(List<Class<?>>, Field) - Method in interface me.ahoo.cosid.accessor.parser.FieldDefinitionParser
-
Parses a field to create its ID definition.
- parse(List<Class<?>>, Field) - Method in class me.ahoo.cosid.accessor.parser.NamedDefinitionParser
- parse(List<Class<?>>, Field) - Method in class me.ahoo.cosid.annotation.AnnotationDefinitionParser
- parse(List<Class<?>>, Field) - Method in class me.ahoo.cosid.spring.data.jdbc.IdAnnotationDefinitionParser
- parseClass(Class<?>) - Method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
- parseGetter(Field) - Static method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
-
Parses a getter method for a field.
- parseMachineId(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Extracts the machine ID portion of an ID.
- parseSequence(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Extracts the sequence portion of an ID.
- parseSetter(Field) - Static method in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
-
Parses a setter method for a field.
- parseTimestamp(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Extracts and parses the timestamp portion of an ID.
- password() - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Returns the value of the
passwordrecord component. - password() - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Returns the value of the
passwordrecord component. - PASSWORD_ENV - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- PASSWORD_ENV - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- PASSWORD_PROPERTY - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- PASSWORD_PROPERTY - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- PHASE - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
-
Below Spring Boot's web server lifecycles (
DEFAULT_PHASE - 1024andDEFAULT_PHASE - 2048). - PostgresLauncher - Class in me.ahoo.cosid.test.container
-
Provides a real PostgreSQL for backend contract tests.
- PostgresLauncher.Connection - Record Class in me.ahoo.cosid.test.container
-
JDBC connection settings.
- PostgreSqlDialect - Class in me.ahoo.cosid.jdbc
-
PostgreSQL versions of the SQL that defaults to MySQL syntax.
- postProcessBeanDefinitionRegistry(BeanDefinitionRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanDefinitionRegistrar
- postProcessBeanDefinitionRegistry(BeanDefinitionRegistry) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanDefinitionRegistrar
- postProcessBeanFactory(ConfigurableListableBeanFactory) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanDefinitionRegistrar
- postProcessBeanFactory(ConfigurableListableBeanFactory) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanDefinitionRegistrar
- PreciseSharding<T extends Comparable<?>> - Interface in me.ahoo.cosid.sharding
-
Single-value sharding algorithm interface.
- prefetch() - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Perform the prefetching logic.
- PrefetchJob(IdSegmentChain) - Constructor for class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Create a new prefetch job for the specified tail chain.
- PrefetchWorker - Interface in me.ahoo.cosid.segment.concurrent
-
Worker for prefetching ID segments.
- PrefetchWorker() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
- prefetchWorkerExecutorService() - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSegmentAutoConfiguration
- PrefetchWorkerExecutorService - Class in me.ahoo.cosid.segment.concurrent
-
Prefetch Worker Executor Service.
- PrefetchWorkerExecutorService(Duration, int) - Constructor for class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
- PrefetchWorkerExecutorService(Duration, int, boolean) - Constructor for class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
- PrefetchWorkerExecutorService.GracefullyCloser - Class in me.ahoo.cosid.segment.concurrent
- PREFIX - Static variable in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
The configuration property prefix for CosId generator properties.
- PREFIX - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
The configuration property prefix for machine properties.
- PREFIX - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
The configuration property prefix for segment ID properties.
- PREFIX - Static variable in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- PREFIX - Static variable in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- PrefixConverterStat - Class in me.ahoo.cosid.stat.converter
-
Prefix converter stat with prefix configuration.
- PrefixConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.PrefixConverterStat
- PrefixIdConverter - Class in me.ahoo.cosid.converter
-
Converter that prepends a fixed prefix to string IDs.
- PrefixIdConverter(String, IdConverter) - Constructor for class me.ahoo.cosid.converter.PrefixIdConverter
-
Creates a prefix converter.
- ProcessId - Enum Class in me.ahoo.cosid.util
-
Utility for getting current process information.
- PROVIDER_ISOLATED_KEY - Static variable in class me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
-
Property that switches the provider bean to one isolated per application context.
- ProviderProperties - Class in me.ahoo.cosid.spring.boot.starter
-
IdGeneratorProviderconfiguration (cosid.provider.*). - ProviderProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.ProviderProperties
- PROXY - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- PROXY - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- ProxyIdSegmentDistributor - Class in me.ahoo.cosid.proxy
-
ProxyIdSegmentDistributor .
- ProxyIdSegmentDistributor(SegmentClient, String, String, long) - Constructor for class me.ahoo.cosid.proxy.ProxyIdSegmentDistributor
- ProxyIdSegmentDistributorFactory - Class in me.ahoo.cosid.proxy
-
ProxyIdSegmentDistributorFactory .
- ProxyIdSegmentDistributorFactory(SegmentClient) - Constructor for class me.ahoo.cosid.proxy.ProxyIdSegmentDistributorFactory
- proxyMachineIdDistributor(ProxyMachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdProxyMachineIdDistributorAutoConfiguration
- proxyMachineLeaseStore(MachineLeaseClient, ObjectProvider<CosIdProperties>) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdProxyMachineIdDistributorAutoConfiguration
-
The machine id lease store through the proxy server's version 2 lease API.
- ProxyMachineLeaseStore - Class in me.ahoo.cosid.proxy
-
MachineLeaseStorethrough a CosId proxy server's version 2 lease API: each primitive is one HTTP call to the server, which passes it to its backend store. - ProxyMachineLeaseStore(MachineLeaseApi) - Constructor for class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- ProxyProperties - Class in me.ahoo.cosid.spring.boot.starter
-
Configuration properties for CosId proxy server connection.
- ProxyProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.ProxyProperties
R
- Radix() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix
- RADIX - Enum constant in enum class me.ahoo.cosid.jackson.AsString.Type
- RADIX - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Base62 radix conversion for compact alphanumeric IDs.
- RADIX - Static variable in class me.ahoo.cosid.converter.Radix36IdConverter
-
Radix value (36).
- RADIX - Static variable in class me.ahoo.cosid.converter.Radix62IdConverter
-
The radix (base) used for conversion: 62 characters.
- Radix36() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix36
- RADIX36 - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties.Type
-
Radix36 generator using base36 encoding (0-9, A-Z).
- RADIX36 - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Base36 radix conversion for uppercase alphanumeric IDs.
- Radix36CosIdGenerator - Class in me.ahoo.cosid.cosid
-
CosIdGenerator using radix-36 string encoding.
- Radix36CosIdGenerator(int) - Constructor for class me.ahoo.cosid.cosid.Radix36CosIdGenerator
-
Creates a generator with default configuration.
- Radix36CosIdGenerator(int, int, int, int, int) - Constructor for class me.ahoo.cosid.cosid.Radix36CosIdGenerator
-
Creates a generator with custom configuration.
- Radix36IdConverter - Class in me.ahoo.cosid.converter
-
Radix-36 string ID converter using characters 0-9 and A-Z.
- Radix36IdConverter(boolean, int) - Constructor for class me.ahoo.cosid.converter.Radix36IdConverter
-
Creates a new converter.
- RADIX62 - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties.Type
-
Radix62 generator using base62 encoding (0-9, A-Z, a-z).
- Radix62CosIdGenerator - Class in me.ahoo.cosid.cosid
-
CosIdGenerator using radix-62 string encoding.
- Radix62CosIdGenerator(int) - Constructor for class me.ahoo.cosid.cosid.Radix62CosIdGenerator
-
Creates a generator with default configuration.
- Radix62CosIdGenerator(int, int, int, int, int) - Constructor for class me.ahoo.cosid.cosid.Radix62CosIdGenerator
-
Creates a generator with custom configuration.
- Radix62IdConverter - Class in me.ahoo.cosid.converter
-
62-bit radix string ID converter that converts long IDs to compact string representations.
- Radix62IdConverter(boolean, int) - Constructor for class me.ahoo.cosid.converter.Radix62IdConverter
-
Create a new Radix62IdConverter with the specified configuration.
- radixCharSize() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- RadixConverterStat - Class in me.ahoo.cosid.stat.converter
-
Radix converter stat with radix configuration.
- RadixConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.RadixConverterStat
- RadixCosIdGenerator - Class in me.ahoo.cosid.cosid
-
Radix-based CosIdGenerator implementation.
- RadixCosIdGenerator(int, int, int, int, int, CosIdIdStateParser) - Constructor for class me.ahoo.cosid.cosid.RadixCosIdGenerator
-
Creates a new RadixCosIdGenerator.
- RadixCosIdStateParser - Class in me.ahoo.cosid.cosid
-
Parser for converting
CosIdStateto String and vice versa. - RadixCosIdStateParser(RadixIdConverter, RadixIdConverter, RadixIdConverter) - Constructor for class me.ahoo.cosid.cosid.RadixCosIdStateParser
- RadixIdConverter - Class in me.ahoo.cosid.converter
-
Abstract base for radix-based ID converters.
- RadixIdConverter(boolean, int) - Constructor for class me.ahoo.cosid.converter.RadixIdConverter
-
Creates a new RadixIdConverter.
- radixPadStart() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- randomDistributeAndRevertNeverShareMachineIds() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
- RangeSharding<T extends Comparable<?>> - Interface in me.ahoo.cosid.sharding
-
Range-based sharding algorithm interface.
- reclaim(String, InstanceId) - Method in class me.ahoo.cosid.machine.lease.MachineLeaseManager
-
Take back the lease this instance holds, for instance after a restart without a lease in memory.
- Redis() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Redis
- Redis() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Redis
- REDIS - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- REDIS - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- REDIS_ID_GENERATE - Static variable in class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
-
Initialize the adder to the offset when the key is missing and increment it, atomically.
- RedisCommandTimeout - Class in me.ahoo.cosid.spring.redis
-
Bounds how long a caller waits for a Redis command.
- RedisCommandTimeoutException - Exception in me.ahoo.cosid.spring.redis
-
Thrown when a Redis command does not complete within
RedisCommandTimeout.getTimeout(). - RedisCommandTimeoutException(String, Duration, Throwable) - Constructor for exception me.ahoo.cosid.spring.redis.RedisCommandTimeoutException
- RedisKeys - Class in me.ahoo.cosid.spring.redis
-
Redis key helpers shared by the CosId Redis stores.
- RedisLauncher - Class in me.ahoo.cosid.test.container
-
Provides a real Redis for backend contract tests.
- refreshLocalState(String, InstanceId) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- refreshLocalState(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Record the current time as the last timestamp of the local machine state, without contacting the remote store.
- register(Class<?>) - Method in interface me.ahoo.cosid.accessor.registry.CosIdAccessorRegistry
-
Registers a class, parsing its accessor from annotations.
- register(Class<?>) - Method in class me.ahoo.cosid.accessor.registry.DefaultAccessorRegistry
- register(Class<?>, CosIdAccessor) - Method in interface me.ahoo.cosid.accessor.registry.CosIdAccessorRegistry
-
Registers a class with a specific accessor.
- register(Class<?>, CosIdAccessor) - Method in class me.ahoo.cosid.accessor.registry.DefaultAccessorRegistry
- register(String, InstanceId) - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Registers an instance ID within a specific namespace.
- register(String, InstanceId) - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
- register(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Registers an instance ID within a specific namespace.
- register(String, InstanceId, long) - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Registers an instance whose machine id was distributed by a call started at
distributedAt. - register(String, InstanceId, long) - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Registers an instance whose machine id was distributed by a call started at
distributedAt. - release(String, ReleaseRequest) - Method in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
-
Release a lease.
- release(Lease, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- release(Lease, long) - Method in class me.ahoo.cosid.machine.lease.MachineLeaseManager
-
Release a lease on shutdown.
- release(Lease, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Release a lease on shutdown, if it is still the current version.
- release(Lease, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- release(Lease, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- release(Lease, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- release(Lease, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- release(Lease, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- RELEASED - Static variable in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
- releasedMachineIdGoesToTheNextClaimer() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- releasedThenTakenBy34WithTheSameTimestampIsNotTakenAgain() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
-
A 3.4 instance with a host clock behind takes a machine id that 4.0 released and writes back the very same timestamp: 4.0 must not take it from that live 3.4 owner, even though the 4.0 owner's last renewal is older than the safe guard.
- ReleaseRequest - Record Class in me.ahoo.cosid.proxy.api
-
A release of a lease on shutdown.
- ReleaseRequest(LeaseDto, long) - Constructor for record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Creates an instance of a
ReleaseRequestrecord class. - remove(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
- remove(String) - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- remove(String) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Remove an ID generator by its name.
- remove(String) - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdEndpoint
- remove(String, InstanceId) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- remove(String, InstanceId) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- remove(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Removes the machine state for a given namespace and instance.
- removeAll(Collection<?>) - Method in class me.ahoo.cosid.sharding.ExactCollection
- REMOVED_PROVIDER - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Removed in 4.0:
MachineProperties.Distributor.TYPEnames any store, also an application'sCosIdStoreProvider. - REMOVED_PROVIDER - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
-
Removed in 4.0:
SegmentIdProperties.Distributor.TYPEnames any store, also an application'sCosIdStoreProvider. - removeShare() - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- removeShare() - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Remove the shared (default) ID generator.
- renew(long) - Method in class me.ahoo.cosid.machine.MachineIdLease
-
Extend the lease after a successful distribute or guard.
- renew(String, RenewRequest) - Method in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
- renew(Lease) - Method in class me.ahoo.cosid.machine.lease.MachineLeaseManager
-
Renew a lease.
- renew(Lease, long) - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
- renew(Lease, long) - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
Renew a lease to
nowif it is still the currentversion, even whennowis before the stored renewed at (the store clock moved back). - renew(Lease, long) - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
- renew(Lease, long) - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
- renew(Lease, long) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
- renew(Lease, long) - Method in class me.ahoo.cosid.test.machine.lease.InMemoryMachineLeaseStore
- renew(Lease, long) - Method in class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
- renewAfterTheStoreClockMovedBackKeepsTheLeaseAlive() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- renewDoesNotAdvanceTheWatermark() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- renewedAt() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
renewedAtrecord component. - renewOfReleasedLeaseFails() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- RenewRequest - Record Class in me.ahoo.cosid.proxy.api
-
A renewal of a lease.
- RenewRequest(LeaseDto, long) - Constructor for record class me.ahoo.cosid.proxy.api.RenewRequest
-
Creates an instance of a
RenewRequestrecord class. - renewRequiresTheCurrentVersion() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- resolveMachineId() - Static method in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- retainAll(Collection<?>) - Method in class me.ahoo.cosid.sharding.ExactCollection
- Retry() - Constructor for class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- revert() - Method in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- revert(String, String, boolean, Integer, Long) - Method in interface me.ahoo.cosid.proxy.api.MachineApi
-
Revert a machine ID.
- revert(String, InstanceId) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
-
1.
- revert(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Revert (release) a previously allocated machine ID.
- Revert - Class in me.ahoo.cosid.test.machine.distributor
-
Revert .
- Revert(Supplier<MachineIdDistributor>, int) - Constructor for class me.ahoo.cosid.test.machine.distributor.Revert
- REVERT_TIME_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
- revertFilter(String, InstanceId, MachineState) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- revertRemote(String, InstanceId, MachineState) - Method in class me.ahoo.cosid.machine.AbstractMachineIdDistributor
- revertRemote(String, InstanceId, MachineState) - Method in class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- revertRemote(String, InstanceId, MachineState) - Method in class me.ahoo.cosid.machine.lease.LeaseStoreMachineIdDistributor
- revertRemote(String, InstanceId, MachineState) - Method in class me.ahoo.cosid.machine.ManualMachineIdDistributor
- revertUpdate(InstanceId, MachineState) - Static method in interface me.ahoo.cosid.mongo.MachineOperates
- ROOT_VERSION - Static variable in class me.ahoo.cosid.segment.IdSegmentChain
-
Version number for the root chain.
- run() - Method in class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
- run() - Method in class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService.GracefullyCloser
- run() - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Run the prefetch job.
- run() - Method in class me.ahoo.cosid.test.ModSpec
- run() - Method in class me.ahoo.cosid.util.Clock.CacheClock
- run(String, Runnable) - Method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
S
- SafeJavaScriptSnowflakeId - Class in me.ahoo.cosid.snowflake
-
Safe JavaScript Snowflake ID generators.
- SafeJavaScriptSnowflakeId() - Constructor for class me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId
- same(String, String) - Static method in class me.ahoo.cosid.spring.boot.starter.store.StoreTypes
-
Whether two store types are the same.
- scan() - Method in interface me.ahoo.cosid.accessor.scanner.CosIdScanner
-
Scans and registers qualified classes.
- scan() - Method in class me.ahoo.cosid.accessor.scanner.DefaultCosIdScanner
- SECOND - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition.TimestampUnit
- SecondSnowflakeId - Class in me.ahoo.cosid.snowflake
-
Second-based Snowflake ID generator.
- SecondSnowflakeId(int) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Creates a SecondSnowflakeId with default configuration.
- SecondSnowflakeId(int, int) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Creates a SecondSnowflakeId with custom machine bits.
- SecondSnowflakeId(long, int, int, int, int) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Creates a SecondSnowflakeId with custom bit configuration.
- SecondSnowflakeId(long, int, int, int, int, long) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeId
-
Creates a SecondSnowflakeId with full custom configuration.
- SecondSnowflakeIdStateParser - Class in me.ahoo.cosid.snowflake
-
Parser for second-based SnowflakeId state.
- SecondSnowflakeIdStateParser(long, int, int, int) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
-
Creates a parser with default zone and no padding.
- SecondSnowflakeIdStateParser(long, int, int, int, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
-
Creates a parser with custom zone and padding.
- SecondSnowflakeIdStateParser(SnowflakeLayout, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.SecondSnowflakeIdStateParser
-
Creates a parser for ids of the given layout.
- secondTime() - Method in class me.ahoo.cosid.util.Clock.CacheClock
- secondTime() - Method in interface me.ahoo.cosid.util.Clock
- secondTime() - Method in class me.ahoo.cosid.util.Clock.SystemClock
-
System.currentTimeMillis()is too slow. - segment(String, int, Function<SegmentStoreContext, IdSegmentDistributorFactory>) - Static method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
-
A segment provider ranked by
orderamong built-in providers of the same type. - segment(String, Function<SegmentStoreContext, IdSegmentDistributorFactory>) - Static method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- SEGMENT - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Mode
-
Basic segment mode that allocates IDs in fixed-size segments.
- SEGMENT_ROLLBACK - Static variable in class me.ahoo.cosid.proxy.api.ErrorResponse
-
The stored segment max id moved backwards: the next segment would overlap ids already issued.
- SegmentApi - Interface in me.ahoo.cosid.proxy.api
- SegmentChainId - Class in me.ahoo.cosid.segment
-
Segment chain algorithm ID generator.
- SegmentChainId(long, int, int, IdSegmentDistributor, PrefetchWorkerExecutorService) - Constructor for class me.ahoo.cosid.segment.SegmentChainId
-
Create a new SegmentChainId with custom configuration.
- SegmentChainId(long, int, int, IdSegmentDistributor, PrefetchWorkerExecutorService, CallTimeout) - Constructor for class me.ahoo.cosid.segment.SegmentChainId
-
Create a new SegmentChainId with custom configuration and a timeout for each background prefetch.
- SegmentChainId(long, int, IdSegmentDistributor, PrefetchWorkerExecutorService) - Constructor for class me.ahoo.cosid.segment.SegmentChainId
-
Create a new SegmentChainId with custom configuration.
- SegmentChainId(IdSegmentDistributor) - Constructor for class me.ahoo.cosid.segment.SegmentChainId
-
Create a new SegmentChainId with default configuration.
- SegmentChainId.PrefetchJob - Class in me.ahoo.cosid.segment
-
Background prefetch job for segment chain ID generation.
- SegmentClient - Interface in me.ahoo.cosid.proxy.api
- SegmentId - Interface in me.ahoo.cosid.segment
-
Segment algorithm ID generator.
- segmentIdBeanDefinitionRegistrar() - Static method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSegmentAutoConfiguration
-
The segment id beans, as bean definitions: see
SegmentIdBeanDefinitionRegistrar. - SegmentIdBeanDefinitionRegistrar - Class in me.ahoo.cosid.spring.boot.starter.segment
-
Registers a bean definition per segment id of
cosid.segment.shareandcosid.segment.provider, named{name}SegmentId: other beans can depend on them (@DependsOn("orderSegmentId")), and the context closes them on shutdown, which stops a segment chain's background prefetch. - SegmentIdBeanDefinitionRegistrar() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanDefinitionRegistrar
- segmentIdBeanRegistrar(CosIdProperties, IdSegmentDistributorFactory, IdGeneratorProvider, PrefetchWorkerExecutorService, ObjectProvider<CustomizeSegmentIdProperties>, ConfigurableListableBeanFactory) - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdSegmentAutoConfiguration
-
Creates the segment ids, after running the
CustomizeSegmentIdProperties. - SegmentIdBeanRegistrar - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdBeanRegistrar(CosIdProperties, SegmentIdProperties, IdSegmentDistributorFactory, IdGeneratorProvider, PrefetchWorkerExecutorService, ObjectProvider<CustomizeSegmentIdProperties>, BeanDefinitionRegistry) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanRegistrar
-
Create the factory of the segment ids: runs every
CustomizeSegmentIdPropertieson the properties first. - SegmentIdConverterDecorator - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdConverterDecorator(SegmentId, IdConverterDefinition) - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdConverterDecorator
- SegmentIdProperties - Class in me.ahoo.cosid.spring.boot.starter.segment
-
Configuration properties for segment-based ID generation in Spring Boot applications.
- SegmentIdProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Constructs a new SegmentIdProperties instance with default configurations.
- SegmentIdProperties.Chain - Class in me.ahoo.cosid.spring.boot.starter.segment
-
Configuration for chain-based segment ID generation.
- SegmentIdProperties.Chain.PrefetchWorker - Class in me.ahoo.cosid.spring.boot.starter.segment
-
Configuration for the prefetch worker that manages segment prefetching.
- SegmentIdProperties.Distributor - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.Distributor.Jdbc - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.Distributor.Mongo - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.Distributor.Redis - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.Distributor.Zookeeper - Class in me.ahoo.cosid.spring.boot.starter.segment
-
ZooKeeper segment distributor.
- SegmentIdProperties.IdDefinition - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.IdDefinition.Group - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.IdDefinition.GroupBy - Enum Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdProperties.Mode - Enum Class in me.ahoo.cosid.spring.boot.starter.segment
-
Enumeration of supported segment ID generation modes.
- SegmentIdProperties.ShardIdDefinition - Class in me.ahoo.cosid.spring.boot.starter.segment
- SegmentIdStat - Class in me.ahoo.cosid.stat.generator
-
Segment ID generator stat with segment metadata.
- SegmentIdStat() - Constructor for class me.ahoo.cosid.stat.generator.SegmentIdStat
- SegmentNameMissingException - Exception in me.ahoo.cosid.jdbc.exception
-
Segment Name Missing Exception.
- SegmentNameMissingException(String) - Constructor for exception me.ahoo.cosid.jdbc.exception.SegmentNameMissingException
-
Constructs a new runtime exception with
nullas its detail message. - SegmentStoreContext - Class in me.ahoo.cosid.spring.boot.starter.store
-
What a
CosIdStoreProvidergets to create an id segment distributor factory. - SegmentStoreContext(SegmentIdProperties) - Constructor for class me.ahoo.cosid.spring.boot.starter.store.SegmentStoreContext
- SELF - Static variable in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
-
The claim kinds, as path segments.
- separatesWatermark() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
-
Whether the store keeps the watermark apart from the renewal time.
- sequence - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Sequence of the last generated ID.
- sequence(long) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Sets the sequence number component.
- SEQUENCE_OVERFLOW - Static variable in interface me.ahoo.cosid.segment.IdSegment
-
Special sequence value indicating overflow.
- sequenceBit - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Number of bits allocated for the sequence portion.
- sequenceBit - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Number of bits for sequence portion.
- sequenceBit() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- sequenceBit() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns the value of the
sequenceBitrecord component. - sequenceMask - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Mask for extracting sequence from raw ID.
- serialize(Long, JsonGenerator, SerializationContext) - Method in class me.ahoo.cosid.jackson.AsStringSerializer
- serialize(Object) - Static method in class me.ahoo.cosid.proxy.Jsons
- SERVER_TIME_SQL - Static variable in class me.ahoo.cosid.jdbc.PostgreSqlDialect
-
Current time of the server in milliseconds, for
JdbcMachineLeaseStore. - serverTime() - Method in class me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
-
The database server's clock, read with
serverTimeSql. - serverTime() - Method in interface me.ahoo.cosid.machine.lease.MachineLeaseStore
-
The store's clock, in milliseconds, when it has one; otherwise this host's clock.
- serverTime() - Method in class me.ahoo.cosid.mongo.MongoMachineLeaseStore
-
The
localTimeof the server'shellocommand, or ofisMasteron servers before 4.2.10, which have nohello. - serverTime() - Method in interface me.ahoo.cosid.proxy.api.MachineLeaseApi
-
The backend store's clock, in milliseconds.
- serverTime() - Method in class me.ahoo.cosid.proxy.ProxyMachineLeaseStore
-
The backend store's clock, through the server.
- serverTime() - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
-
Redis'
TIME, in milliseconds. - serverTimeIsWallClockTime() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- set(String, int, InstanceId) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- set(String, int, InstanceId) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- set(String, int, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Sets the machine state for a given namespace and instance.
- set(String, StringIdGenerator) - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- set(String, StringIdGenerator) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Set an ID generator with the specified name.
- SET_PREFIX - Static variable in class me.ahoo.cosid.accessor.parser.DefaultAccessorParser
- setBaseSleepTimeMs(int) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- setBeforePrefix(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- setBeforePrefix(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- setBlockUntilConnectedWait(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setBrokenThreshold(int) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.ClockBackwards
-
Sets the broken threshold for clock validation.
- setBy(SegmentIdProperties.IdDefinition.GroupBy) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.Group
- setChain(SegmentIdProperties.Chain) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setChain(SegmentIdProperties.Chain) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the chain configuration.
- setCharSize(int) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix
- setCharSize(int) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix36
- setCharSize(int) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.ToString
- setClockBackwards(MachineProperties.ClockBackwards) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the clock backwards configuration.
- setClockSync(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setConnectionTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setConnectString(String) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setConnectTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- setConverter(IdConverterDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setConverter(IdConverterDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setCorePoolSize(int) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Sets the core pool size for the executor.
- setCustom(IdConverterDefinition.Custom) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the custom converter configuration.
- setDatabase(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
-
Sets the MongoDB database name.
- setDatabase(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Mongo
- setDatePrefix(IdConverterDefinition.DatePrefix) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the date prefix configuration.
- setDelay(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets the delay between guarding checks.
- setDelimiter(String) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- setDelimiter(String) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- setDistributeTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Redis
- setDistributor(MachineProperties.Distributor) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the distributor configuration.
- setDistributor(SegmentIdProperties.Distributor) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the distributor configuration.
- setEnableAutoInitCosidMachineTable(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Sets whether automatic
cosid_machinetable initialization is enabled. - setEnableAutoInitCosidTable(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setEnableAutoInitIdSegment(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets whether CosId generator auto-configuration should be enabled.
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Sets whether CosId auto-configuration should be enabled.
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.GroupPrefix
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets whether machine ID guarding should be enabled.
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets whether machine ID management should be enabled.
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets whether segment ID generation should be enabled.
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.ShardIdDefinition
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.ShardIdDefinition
- setEnabled(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setEnvironment(Environment) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdBeanDefinitionRegistrar
- setEnvironment(Environment) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanDefinitionRegistrar
- setEpoch(long) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setEpoch(long) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- setFailFast(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets whether generators fail fast when the machine id lease is lost or expired.
- setFetchMaxIdSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setFriendly(IdConverterDefinition.Friendly) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the friendly format configuration.
- setGroup(SegmentIdProperties.IdDefinition.Group) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setGroupPrefix(IdConverterDefinition.GroupPrefix) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the group prefix configuration.
- setGuarder(MachineProperties.Guarder) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the guarder configuration.
- setHost(String) - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
-
Sets the proxy server host URL.
- setHungerTime(long) - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Sets the hunger time for this job.
- setHungerTime(long) - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Set the hunger time for this job.
- setId(Object, Object) - Method in class me.ahoo.cosid.accessor.CosIdAccessor.NotFound
-
Set the ID value on the target object (no-op for NotFound).
- setId(Object, Object) - Method in interface me.ahoo.cosid.accessor.CosIdSetter
-
Sets the ID value on the target object.
- setId(Object, Object) - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
- setId(Object, Object) - Method in class me.ahoo.cosid.accessor.field.FieldSetter
- setId(Object, Object) - Method in class me.ahoo.cosid.accessor.method.MethodSetter
- setIncrementMaxIdSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setInitCosIdMachineTableSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Sets the DDL for creating the
cosid_machinetable. - setInitCosidTableSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setInitialDelay(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets the initial delay before starting guarding.
- setInitIdSegmentSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setInitInstanceIdIdxSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Sets the DDL for creating the
idx_instance_idindex. - setInitNamespaceIdxSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
-
Sets the DDL for creating the
idx_namespaceindex. - setInstanceId(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the unique instance identifier.
- setIsolated(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.ProviderProperties
- setJdbc(MachineProperties.Jdbc) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the JDBC configuration.
- setJdbc(SegmentIdProperties.Distributor.Jdbc) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- setLocal(MachineProperties.StateStorage.Local) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage
-
Sets the local storage configuration.
- setLocalStateInterval(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets how often the local machine state is refreshed; zero disables it.
- setMachineBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the number of bits allocated for machine ID.
- setMachineBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the number of bits allocated for machine ID.
- setMachineBit(Integer) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setMachineId(Integer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Manual
-
Sets the manually assigned machine ID.
- setManual(MachineProperties.Manual) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the manual configuration.
- setMaxIdBack(T, long) - Method in class me.ahoo.cosid.test.segment.distributor.GroupedIdSegmentDistributorSpec
- setMaxIdBack(T, long) - Method in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- setMaxPrefetchDistance(int) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Sets the maximum number of segments a single prefetch may request.
- setMaxRetries(int) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- setMaxSleepMs(int) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties.Retry
- setMode(SegmentIdProperties.Mode) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setMode(SegmentIdProperties.Mode) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the mode of segment ID generation.
- setMongo(MachineProperties.Mongo) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the MongoDB configuration.
- setMongo(SegmentIdProperties.Distributor.Mongo) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- setNamespace(String) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the namespace for ID generation.
- setNamespace(String) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Sets the namespace for ID generation.
- setNamespace(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setNamespace(String) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setNext(IdSegmentChain) - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Sets the next segment in the chain.
- setOffset(long) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setPadStart(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets whether to pad the start of friendly format IDs.
- setPadStart(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Friendly
- setPadStart(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix
- setPadStart(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Radix36
- setPadStart(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.ToString
- setPattern(String) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.DatePrefix
- setPattern(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.Group
- setPort(Integer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the port number for this instance.
- setPrefetchPeriod(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Sets the prefetch period.
- setPrefetchTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Sets the timeout of each background prefetch.
- setPrefetchWorker(PrefetchWorker) - Method in interface me.ahoo.cosid.segment.concurrent.AffinityJob
-
Sets the prefetch worker for this job.
- setPrefetchWorker(PrefetchWorker) - Method in class me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
-
Set the prefetch worker for this job.
- setPrefetchWorker(SegmentIdProperties.Chain.PrefetchWorker) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Sets the prefetch worker configuration.
- setPrefix(String) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the static prefix.
- setProvider(Map<String, SegmentIdProperties.IdDefinition>) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the map of named ID definitions.
- setProvider(Map<String, SnowflakeIdProperties.IdDefinition>) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- setProvider(ProviderProperties) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
- setProxy(ProxyProperties) - Method in class me.ahoo.cosid.spring.boot.starter.CosIdProperties
-
Sets the proxy configuration properties.
- setQueryTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
- setQueryTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Jdbc
- setRadix(IdConverterDefinition.Radix) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the radix62 configuration.
- setRadix36(IdConverterDefinition.Radix36) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the radix36 configuration.
- setReadTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- setRedis(MachineProperties.Redis) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the Redis configuration.
- setRedis(SegmentIdProperties.Distributor.Redis) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- setRetry(CosIdZookeeperProperties.Retry) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setSafeDistance(int) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain
-
Sets the safe distance for chain generation.
- setSafeGuardDuration(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Guarder
-
Sets the safe guard duration.
- setSequenceBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the number of bits allocated for sequence number.
- setSequenceBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setSequenceResetThreshold(int) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the sequence reset threshold.
- setSequenceResetThreshold(long) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setServerTimeSql(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Jdbc
- setSessionTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.zookeeper.CosIdZookeeperProperties
- setShare(IdGenerator) - Method in class me.ahoo.cosid.provider.DefaultIdGeneratorProvider
- setShare(IdGenerator) - Method in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
Set the shared (default) ID generator.
- setShare(SegmentIdProperties.ShardIdDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the shared ID definition configuration.
- setShare(SnowflakeIdProperties.ShardIdDefinition) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- setShutdownHook(boolean) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Chain.PrefetchWorker
-
Sets whether to enable shutdown hook.
- setSpinThreshold(int) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.ClockBackwards
-
Sets the spin threshold for clock synchronization.
- setStable(Boolean) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets whether the machine ID should be stable across restarts.
- setStateLocation(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage.Local
-
Sets the file system path for state storage.
- setStateStorage(MachineProperties.StateStorage) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties
-
Sets the state storage configuration.
- setStep(long) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setSuffix(String) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the static suffix.
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Mongo
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Redis
-
Sets the Redis operation timeout.
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Zookeeper
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Mongo
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Redis
- setTimeout(Duration) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Zookeeper
- setTimestampBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the number of bits allocated for timestamp.
- setTimestampBit(int) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setTimestampUnit(SnowflakeIdProperties.IdDefinition.TimestampUnit) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- setToken(String) - Method in class me.ahoo.cosid.spring.boot.starter.ProxyProperties
- setToString(IdConverterDefinition.ToString) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the toString configuration.
- setTtl(long) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties
-
Sets the time to live for ID segments.
- setTtl(Long) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition
- setType(Class<? extends IdConverter>) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Custom
- setType(String) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the distributor type.
- setType(String) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- setType(CosIdGeneratorProperties.Type) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the type of CosId generator.
- setType(IdConverterDefinition.Type) - Method in class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition
-
Sets the converter type.
- setZoneId(ZoneId) - Method in class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
-
Sets the time zone for friendly format generators.
- setZoneId(ZoneId) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- setZookeeper(MachineProperties.Zookeeper) - Method in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
Sets the ZooKeeper configuration.
- setZookeeper(SegmentIdProperties.Distributor.Zookeeper) - Method in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- ShardIdDefinition() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.ShardIdDefinition
- ShardIdDefinition() - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.ShardIdDefinition
- sharding(Range<LocalDateTime>) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
- sharding(Range<T>) - Method in class me.ahoo.cosid.sharding.CachedSharding
- sharding(Range<T>) - Method in class me.ahoo.cosid.sharding.ModCycle
- sharding(Range<T>) - Method in interface me.ahoo.cosid.sharding.RangeSharding
-
Gets the nodes that should handle the given range of IDs.
- sharding(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
- sharding(T) - Method in class me.ahoo.cosid.sharding.CachedSharding
- sharding(T) - Method in class me.ahoo.cosid.sharding.ModCycle
- sharding(T) - Method in interface me.ahoo.cosid.sharding.PreciseSharding
-
Gets the node for a single sharding value.
- Sharding<T extends Comparable<?>> - Interface in me.ahoo.cosid.sharding
-
Sharding algorithm interface for distributing data across multiple nodes.
- SHARE - Static variable in interface me.ahoo.cosid.provider.IdGeneratorProvider
-
The key used for the shared (default) ID generator.
- shared() - Static method in class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
-
The executor shared by segment chains that are not given one, created on first use.
- shareGenerate() - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdGeneratorEndpoint
- shareGenerateAsString() - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdStringGeneratorEndpoint
- shutdown() - Method in class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
- shutdown() - Method in interface me.ahoo.cosid.segment.concurrent.PrefetchWorker
-
Shuts down the worker.
- shutdown() - Method in class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
- simple(String) - Static method in interface me.ahoo.cosid.stat.Stat
-
Creates a simple stat with the specified kind.
- simple(String, IdGeneratorStat, Stat) - Static method in interface me.ahoo.cosid.stat.generator.IdGeneratorStat
-
Creates a simple stat with the specified kind and converter.
- simple(String, Stat) - Static method in interface me.ahoo.cosid.stat.generator.IdGeneratorStat
-
Creates a simple stat with the specified kind and converter.
- simple(String, Stat) - Static method in interface me.ahoo.cosid.stat.Stat
-
Creates a simple stat with the specified kind and actual.
- SimpleIdGeneratorStat - Class in me.ahoo.cosid.stat.generator
-
Simple ID generator stat implementation.
- SimpleIdGeneratorStat() - Constructor for class me.ahoo.cosid.stat.generator.SimpleIdGeneratorStat
- SimpleStat - Class in me.ahoo.cosid.stat
-
Simple stat implementation wrapping another stat.
- SimpleStat() - Constructor for class me.ahoo.cosid.stat.SimpleStat
- size() - Method in class me.ahoo.cosid.sharding.ExactCollection
- size() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
-
Gets the number of intervals.
- size(String) - Method in class me.ahoo.cosid.machine.InMemoryMachineStateStorage
- size(String) - Method in class me.ahoo.cosid.machine.LocalMachineStateStorage
- size(String) - Method in interface me.ahoo.cosid.machine.MachineStateStorage
-
Gets the number of machine states in a namespace.
- SNOWFLAKE_FRIENDLY - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Friendly format for snowflake IDs with timestamp formatting.
- SnowflakeFriendlyId - Interface in me.ahoo.cosid.snowflake
-
Snowflake ID with human-readable string representation.
- SnowflakeFriendlyIdConverter - Class in me.ahoo.cosid.converter
-
Converts Snowflake IDs to human-readable string format.
- SnowflakeFriendlyIdConverter(SnowflakeIdStateParser) - Constructor for class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
-
Creates a converter with the specified parser.
- SnowflakeFriendlyIdConverterStat - Class in me.ahoo.cosid.stat.converter
-
Snowflake friendly ID converter stat with configuration.
- SnowflakeFriendlyIdConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.SnowflakeFriendlyIdConverterStat
- SnowflakeId - Interface in me.ahoo.cosid.snowflake
-
Snowflake algorithm ID generator.
- snowflakeIdBeanDefinitionRegistrar() - Static method in class me.ahoo.cosid.spring.boot.starter.snowflake.CosIdSnowflakeAutoConfiguration
-
The snowflake id beans, as bean definitions: see
SnowflakeIdBeanDefinitionRegistrar. - SnowflakeIdBeanDefinitionRegistrar - Class in me.ahoo.cosid.spring.boot.starter.snowflake
-
Registers a bean definition per snowflake id of
cosid.snowflake.shareandcosid.snowflake.provider, named{name}SnowflakeId: other beans can depend on them (@DependsOn("orderSnowflakeId")). - SnowflakeIdBeanDefinitionRegistrar() - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanDefinitionRegistrar
- snowflakeIdBeanRegistrar(CosIdProperties, MachineProperties, SnowflakeIdProperties, InstanceId, IdGeneratorProvider, GuardDistribute, ClockBackwardsSynchronizer, ObjectProvider<CustomizeSnowflakeIdProperties>, ConfigurableListableBeanFactory) - Method in class me.ahoo.cosid.spring.boot.starter.snowflake.CosIdSnowflakeAutoConfiguration
-
Creates the snowflake ids, after running the
CustomizeSnowflakeIdProperties. - SnowflakeIdBeanRegistrar - Class in me.ahoo.cosid.spring.boot.starter.snowflake
- SnowflakeIdBeanRegistrar(CosIdProperties, MachineProperties, SnowflakeIdProperties, InstanceId, IdGeneratorProvider, GuardDistribute, ClockBackwardsSynchronizer, ObjectProvider<CustomizeSnowflakeIdProperties>, BeanDefinitionRegistry) - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
-
Create the factory of the snowflake ids: runs every
CustomizeSnowflakeIdPropertieson the properties first. - SnowflakeIdConverterDecorator - Class in me.ahoo.cosid.spring.boot.starter.snowflake
- SnowflakeIdConverterDecorator(SnowflakeId, IdConverterDefinition, ZoneId) - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdConverterDecorator
- SnowflakeIdProperties - Class in me.ahoo.cosid.spring.boot.starter.snowflake
-
SnowflakeId Properties.
- SnowflakeIdProperties() - Constructor for class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
- SnowflakeIdProperties.IdDefinition - Class in me.ahoo.cosid.spring.boot.starter.snowflake
- SnowflakeIdProperties.IdDefinition.TimestampUnit - Enum Class in me.ahoo.cosid.spring.boot.starter.snowflake
- SnowflakeIdProperties.ShardIdDefinition - Class in me.ahoo.cosid.spring.boot.starter.snowflake
- SnowflakeIdStat - Class in me.ahoo.cosid.stat.generator
-
Snowflake ID generator stat with Snowflake configuration.
- SnowflakeIdStat() - Constructor for class me.ahoo.cosid.stat.generator.SnowflakeIdStat
- SnowflakeIdState - Class in me.ahoo.cosid.snowflake
-
Immutable state object representing a parsed Snowflake ID.
- SnowflakeIdState.SnowflakeIdStateBuilder - Class in me.ahoo.cosid.snowflake
-
Builder for SnowflakeIdState.
- SnowflakeIdStateParser - Class in me.ahoo.cosid.snowflake
-
Abstract parser for converting between Snowflake IDs and their component state.
- SnowflakeIdStateParser(long, int, int, int) - Constructor for class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Creates a parser with default zone and no padding.
- SnowflakeIdStateParser(long, int, int, int, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Creates a parser with custom zone and padding settings.
- SnowflakeIdStateParser(SnowflakeLayout, ZoneId, boolean) - Constructor for class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Creates a parser for ids of the given layout.
- SnowflakeLayout - Record Class in me.ahoo.cosid.snowflake
-
The bit layout of a snowflake id:
timestamp | machine id | sequence, from the high bits to the low bits, with the timestamp counted fromepoch. - SnowflakeLayout(long, int, int, int) - Constructor for record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Validates the layout.
- SnowflakeLocalDateTimeConvertor - Class in me.ahoo.cosid.sharding
- SnowflakeLocalDateTimeConvertor() - Constructor for class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
- SpringRedisIdSegmentDistributor - Class in me.ahoo.cosid.spring.redis
-
Spring Redis IdSegmentDistributor.
- SpringRedisIdSegmentDistributor(String, String, long, long, StringRedisTemplate) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- SpringRedisIdSegmentDistributor(String, String, long, long, StringRedisTemplate, RedisCommandTimeout) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- SpringRedisIdSegmentDistributor(String, String, StringRedisTemplate) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributor
- SpringRedisIdSegmentDistributorFactory - Class in me.ahoo.cosid.spring.redis
-
Spring Redis IdSegmentDistributor Factory.
- SpringRedisIdSegmentDistributorFactory(StringRedisTemplate) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributorFactory
- SpringRedisIdSegmentDistributorFactory(StringRedisTemplate, RedisCommandTimeout) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisIdSegmentDistributorFactory
- springRedisMachineIdDistributor(SpringRedisMachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdSpringRedisMachineIdDistributorAutoConfiguration
-
The distribution at startup, whose first command also pays for connecting, is bounded by
cosid.machine.distributor.redis.distribute-timeout; guard, revert and every re-claim, which run under a lock, bycosid.machine.distributor.redis.timeout. - springRedisMachineLeaseStore(StringRedisTemplate) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdSpringRedisMachineIdDistributorAutoConfiguration
-
The machine id lease store on Redis: every command is bounded by
cosid.machine.distributor.redis.timeout. - SpringRedisMachineLeaseStore - Class in me.ahoo.cosid.spring.redis
-
MachineLeaseStoreon Redis: one atomic Lua script per primitive (machine_lease.lua). - SpringRedisMachineLeaseStore(StringRedisTemplate, RedisCommandTimeout) - Constructor for class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
-
Create a Redis lease store.
- stable() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns the value of the
stablerecord component. - stable() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
stablerecord component. - STABLE_FIELD - Static variable in interface me.ahoo.cosid.mongo.MachineOperates
-
Whether the owner is a stable instance, whose machine id is never recycled by other instances.
- stableFlagChangeIsPersisted() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- stableInstanceKeepsItsMachineIdAfterRelease() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- StandardLocalDateTimeConvertor - Class in me.ahoo.cosid.sharding
- StandardLocalDateTimeConvertor() - Constructor for class me.ahoo.cosid.sharding.StandardLocalDateTimeConvertor
- start() - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Starts the machine ID guarder.
- start() - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
- start() - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Starts the machine ID guarder.
- start() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
- start() - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdLifecyclePrefetchWorkerExecutorService
- stat() - Method in class me.ahoo.cosid.converter.DatePrefixIdConverter
- stat() - Method in class me.ahoo.cosid.converter.GroupedPrefixIdConverter
- stat() - Method in class me.ahoo.cosid.converter.PrefixIdConverter
- stat() - Method in class me.ahoo.cosid.converter.RadixIdConverter
- stat() - Method in class me.ahoo.cosid.converter.SnowflakeFriendlyIdConverter
- stat() - Method in class me.ahoo.cosid.converter.SuffixIdConverter
- stat() - Method in class me.ahoo.cosid.converter.ToStringIdConverter
- stat() - Method in class me.ahoo.cosid.cosid.ClockSyncCosIdGenerator
- stat() - Method in interface me.ahoo.cosid.cosid.CosIdGenerator
-
Get statistical information about this CosId generator.
- stat() - Method in class me.ahoo.cosid.cosid.LeasedCosIdGenerator
- stat() - Method in interface me.ahoo.cosid.IdConverter
-
Get statistical information about this converter.
- stat() - Method in interface me.ahoo.cosid.IdGenerator
-
Get statistical information about this ID generator.
- stat() - Method in interface me.ahoo.cosid.IdGeneratorDecorator
-
Get statistical information about this decorated ID generator.
- stat() - Method in class me.ahoo.cosid.provider.LazyIdGenerator
- stat() - Method in interface me.ahoo.cosid.segment.SegmentId
-
Get statistical information about this Segment ID generator.
- stat() - Method in class me.ahoo.cosid.segment.StringSegmentId
- stat() - Method in class me.ahoo.cosid.snowflake.ClockSyncSnowflakeId
- stat() - Method in class me.ahoo.cosid.snowflake.LeasedSnowflakeId
- stat() - Method in interface me.ahoo.cosid.snowflake.SnowflakeId
-
Get statistical information about this Snowflake ID generator.
- stat() - Method in class me.ahoo.cosid.snowflake.StringSnowflakeId
- stat() - Method in class me.ahoo.cosid.spring.boot.starter.actuate.CosIdReadOnlyEndpoint
- stat() - Method in interface me.ahoo.cosid.stat.Statistical
-
Gets statistical information.
- stat() - Method in interface me.ahoo.cosid.StringIdGenerator
-
Get statistical information about this ID generator.
- Stat - Interface in me.ahoo.cosid.stat
-
Statistical information interface.
- STATE_DELIMITER - Static variable in class me.ahoo.cosid.machine.MachineState
-
The delimiter used when serializing machine states to string format.
- STATEFUL_SET - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- statefulSetMachineIdDistributor(MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
- StatefulSetMachineIdDistributor - Class in me.ahoo.cosid.machine.k8s
-
StatefulSet MachineId Distributor.
- StatefulSetMachineIdDistributor(MachineStateStorage, ClockBackwardsSynchronizer) - Constructor for class me.ahoo.cosid.machine.k8s.StatefulSetMachineIdDistributor
- stateLocation - Variable in class me.ahoo.cosid.machine.LocalMachineStateStorage
-
The state location path.
- StateStorage() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.StateStorage
-
Constructs a new StateStorage configuration with default local storage.
- Statistical - Interface in me.ahoo.cosid.stat
-
Interface for objects that can provide statistical information.
- stop() - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Stops the machine ID guarder.
- stop() - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
- stop() - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Stops the machine ID guarder.
- stop() - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineIdLifecycle
- stop() - Method in class me.ahoo.cosid.spring.boot.starter.segment.CosIdLifecyclePrefetchWorkerExecutorService
- storeType(PropertyResolver, String, String, String, String) - Static method in class me.ahoo.cosid.spring.boot.starter.store.CosIdStoreProviders
-
The store type a distributor setting selects, see
StoreTypes. - StoreTypes - Class in me.ahoo.cosid.spring.boot.starter.store
-
Store types (
cosid.machine.distributor.type,cosid.segment.distributor.type) compare like Spring's relaxed binding of enums: only letters and digits count, without case, sostateful_set,stateful-set,STATEFUL_SET,statefulSetandstatefulsetare one type. - StringIdGenerator - Interface in me.ahoo.cosid
-
String type ID generator.
- StringIdGeneratorDecorator - Class in me.ahoo.cosid
-
String ID generator decorator for customizing string ID generation.
- StringIdGeneratorDecorator(IdGenerator, IdConverter) - Constructor for class me.ahoo.cosid.StringIdGeneratorDecorator
-
Create a new StringIdGeneratorDecorator with the specified generator and converter.
- StringSegmentId - Class in me.ahoo.cosid.segment
-
String-based SegmentId wrapper.
- StringSegmentId(SegmentId, IdConverter) - Constructor for class me.ahoo.cosid.segment.StringSegmentId
-
Creates a new StringSegmentId.
- StringSnowflakeId - Class in me.ahoo.cosid.snowflake
-
String-based SnowflakeId wrapper.
- StringSnowflakeId(SnowflakeId, IdConverter) - Constructor for class me.ahoo.cosid.snowflake.StringSnowflakeId
-
Creates a new StringSnowflakeId.
- submit(AffinityJob) - Method in class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
- submit(AffinityJob) - Method in interface me.ahoo.cosid.segment.concurrent.PrefetchWorker
-
Submits a job for prefetching.
- submit(AffinityJob) - Method in class me.ahoo.cosid.segment.concurrent.PrefetchWorkerExecutorService
- success(long) - Static method in class me.ahoo.cosid.machine.GuardianState
-
Creates a successful guardian state.
- SuffixConverterStat - Class in me.ahoo.cosid.stat.converter
-
Suffix converter stat with suffix configuration.
- SuffixConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.SuffixConverterStat
- SuffixIdConverter - Class in me.ahoo.cosid.converter
-
Converter that appends a fixed suffix to string IDs.
- SuffixIdConverter(String, IdConverter) - Constructor for class me.ahoo.cosid.converter.SuffixIdConverter
-
Creates a suffix converter.
- sync(long) - Method in interface me.ahoo.cosid.machine.ClockBackwardsSynchronizer
-
Synchronizes clock by waiting until current time exceeds lastTimestamp.
- sync(long) - Method in class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- syncUninterruptibly(long) - Method in interface me.ahoo.cosid.machine.ClockBackwardsSynchronizer
-
Synchronizes clock without throwing InterruptedException.
- syncUninterruptibly(long) - Method in class me.ahoo.cosid.machine.DefaultClockBackwardsSynchronizer
- SYSTEM - Static variable in interface me.ahoo.cosid.util.Clock
- SystemClock() - Constructor for class me.ahoo.cosid.util.Clock.SystemClock
T
- takeReleasedAs34WithTheSameTimestamp(String, int, String) - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
-
Do what a 3.4 instance whose host clock is behind does when it takes a released machine id: give it to
instanceIdand write back the very same last timestamp, in the 3.4 format. - TEST_HOST - Static variable in class me.ahoo.cosid.test.machine.distributor.MachineIdDistributorSpec
- TEST_OFFSET - Static variable in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- TEST_PREFIX - Static variable in class me.ahoo.cosid.test.MockIdGenerator
- TEST_STEP - Static variable in class me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- TestSpec - Interface in me.ahoo.cosid.test
-
TestSpec .
- TIME_TO_LIVE_FOREVER - Static variable in interface me.ahoo.cosid.segment.IdSegment
-
Special TTL value indicating the segment never expires.
- timestamp(LocalDateTime) - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
-
Sets the timestamp component.
- timestampBit - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Number of bits allocated for the timestamp portion.
- timestampBit - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Number of bits for timestamp portion.
- timestampBit() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- timestampBit() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns the value of the
timestampBitrecord component. - timestampLeft - Variable in class me.ahoo.cosid.snowflake.AbstractSnowflakeId
-
Number of bits to shift timestamp left (equal to sequenceBit + machineBit).
- timestampLeft - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Number of bits to shift timestamp left.
- timestampLeft() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Left shift of the timestamp: the machine id and sequence bits.
- timestampMask - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Mask for extracting timestamp from raw ID.
- TimestampOverflowException - Exception in me.ahoo.cosid.snowflake.exception
-
Exception thrown when timestamp exceeds maximum value.
- TimestampOverflowException(long, long, long) - Constructor for exception me.ahoo.cosid.snowflake.exception.TimestampOverflowException
-
Creates a new exception.
- TimestampSequencer - Class in me.ahoo.cosid.internal
-
The timestamp and sequence logic shared by the snowflake and CosId generators.
- TimestampSequencer(LongSupplier, long, long) - Constructor for class me.ahoo.cosid.internal.TimestampSequencer
-
Create a sequencer.
- TO_STRING - Enum constant in enum class me.ahoo.cosid.jackson.AsString.Type
- TO_STRING - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Simple string conversion using toString().
- toArray() - Method in class me.ahoo.cosid.sharding.ExactCollection
- toArray(T[]) - Method in class me.ahoo.cosid.sharding.ExactCollection
- toLease() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
- toLocalDateTime(Comparable<?>) - Method in interface me.ahoo.cosid.sharding.LocalDateTimeConvertor
-
To local date time.
- toLocalDateTime(Comparable<?>) - Method in class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
- toLocalDateTime(Comparable<?>) - Method in class me.ahoo.cosid.sharding.StandardLocalDateTimeConvertor
- toMachineState() - Method in class me.ahoo.cosid.machine.lease.Lease
- toQueryTimeoutSeconds(Duration) - Static method in class me.ahoo.cosid.jdbc.JdbcSupport
-
Converts a query timeout to the whole seconds expected by
Statement.setQueryTimeout(int). - toStateString() - Method in class me.ahoo.cosid.machine.MachineState
-
Convert this machine state to its string representation.
- toString() - Method in class me.ahoo.cosid.cosid.CosIdState
- toString() - Method in class me.ahoo.cosid.machine.InstanceId
- toString() - Method in class me.ahoo.cosid.machine.lease.Lease
- toString() - Method in class me.ahoo.cosid.machine.MachineIdLease
- toString() - Method in class me.ahoo.cosid.machine.MachineState
-
Get the string representation of this machine state.
- toString() - Method in class me.ahoo.cosid.machine.NamespacedInstanceId
- toString() - Method in record class me.ahoo.cosid.proxy.api.ClaimRequest
-
Returns a string representation of this record class.
- toString() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns a string representation of this record class.
- toString() - Method in record class me.ahoo.cosid.proxy.api.LeaseResponse
-
Returns a string representation of this record class.
- toString() - Method in class me.ahoo.cosid.proxy.api.MachineStateResponse
- toString() - Method in record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Returns a string representation of this record class.
- toString() - Method in record class me.ahoo.cosid.proxy.api.RenewRequest
-
Returns a string representation of this record class.
- toString() - Method in class me.ahoo.cosid.segment.DefaultIdSegment
-
Get the string representation of this segment.
- toString() - Method in class me.ahoo.cosid.segment.grouped.GroupedId
- toString() - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
- toString() - Method in class me.ahoo.cosid.segment.IdSegmentChain
- toString() - Method in class me.ahoo.cosid.segment.MergedIdSegment
- toString() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState.SnowflakeIdStateBuilder
- toString() - Method in class me.ahoo.cosid.snowflake.SnowflakeIdState
- toString() - Method in record class me.ahoo.cosid.snowflake.SnowflakeLayout
-
Returns a string representation of this record class.
- toString() - Method in class me.ahoo.cosid.spring.boot.starter.store.BuiltInStoreProvider
- toString() - Method in class me.ahoo.cosid.spring.redis.RedisCommandTimeout
- toString() - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Returns a string representation of this record class.
- toString() - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Returns a string representation of this record class.
- toString() - Method in class me.ahoo.cosid.util.CallTimeout
- toString(Object, Object...) - Static method in class me.ahoo.cosid.internal.Checks
-
ClassName{name=value, ...}, the format of Guava'sMoreObjects.toStringHelper. - ToString() - Constructor for class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.ToString
- ToStringConverterStat - Class in me.ahoo.cosid.stat.converter
-
ToString converter stat with padding configuration.
- ToStringConverterStat() - Constructor for class me.ahoo.cosid.stat.converter.ToStringConverterStat
- ToStringIdConverter - Class in me.ahoo.cosid.converter
-
Converts long IDs to/from strings using standard String.valueOf().
- ToStringIdConverter(boolean, int) - Constructor for class me.ahoo.cosid.converter.ToStringIdConverter
-
Creates a converter with optional padding.
- TOTAL_BIT - Static variable in interface me.ahoo.cosid.snowflake.SnowflakeId
-
The total number of bits used for Snowflake IDs (63 bits).
- totalMachineIds(int) - Static method in interface me.ahoo.cosid.machine.MachineIdDistributor
-
Calculate the total number of machine IDs for the specified bit size.
- tryGet(boolean) - Method in class me.ahoo.cosid.provider.LazyIdGenerator
-
Attempts to get the generator, optionally throwing if not found.
- tryInitCosIdMachineTable() - Method in class me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
- tryInitCosIdTable() - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- tryInitIdSegment(String, long) - Method in class me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
- trySetNext(Function<IdSegmentChain, IdSegmentChain>) - Method in class me.ahoo.cosid.segment.IdSegmentChain
-
Attempts to set the next segment in the chain.
- ttl() - Method in class me.ahoo.cosid.segment.grouped.GroupedKey
-
Calculates remaining TTL from current time.
- TYPE - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
-
The configuration property key for distributor type.
- TYPE - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
U
- unbind(IdGeneratorProvider) - Static method in class me.ahoo.cosid.axon.CosIdIdentifierFactory
-
Removes one binding of the provider, leaving bindings made by others in place.
- uncertaintyBits() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- uncertaintyBound() - Method in class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- UncertaintyIdGenerator - Class in me.ahoo.cosid.uncertainty
-
Uncertainty ID Generator.
- UncertaintyIdGenerator(IdGenerator, int) - Constructor for class me.ahoo.cosid.uncertainty.UncertaintyIdGenerator
- unknown(String) - Static method in class me.ahoo.cosid.proxy.api.ErrorResponse
- unregister(String, InstanceId) - Method in class me.ahoo.cosid.machine.DefaultMachineIdGuarder
-
Unregisters an instance ID from a specific namespace.
- unregister(String, InstanceId) - Method in class me.ahoo.cosid.machine.MachineIdGuarder.None
- unregister(String, InstanceId) - Method in interface me.ahoo.cosid.machine.MachineIdGuarder
-
Unregisters an instance ID from a specific namespace.
- UPDATE_AFTER_OPTIONS - Static variable in interface me.ahoo.cosid.mongo.Documents
- UPDATE_UPSERT_AFTER_OPTIONS - Static variable in interface me.ahoo.cosid.mongo.Documents
- URI_ENV - Static variable in class me.ahoo.cosid.test.container.RedisLauncher
- URI_PROPERTY - Static variable in class me.ahoo.cosid.test.container.RedisLauncher
- URL_ENV - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- URL_ENV - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- URL_PROPERTY - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- URL_PROPERTY - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- usePrefix(String) - Static method in class me.ahoo.cosid.test.MockIdGenerator
- username() - Method in record class me.ahoo.cosid.test.container.MySqlLauncher.Connection
-
Returns the value of the
usernamerecord component. - username() - Method in record class me.ahoo.cosid.test.container.PostgresLauncher.Connection
-
Returns the value of the
usernamerecord component. - USERNAME_ENV - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- USERNAME_ENV - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- USERNAME_PROPERTY - Static variable in class me.ahoo.cosid.test.container.MySqlLauncher
- USERNAME_PROPERTY - Static variable in class me.ahoo.cosid.test.container.PostgresLauncher
- UuidGenerator - Class in me.ahoo.cosid.jvm
-
UUID ID Generator.
- UuidGenerator() - Constructor for class me.ahoo.cosid.jvm.UuidGenerator
V
- v34() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
-
A new 3.4 distributor, with its own local state storage.
- v40() - Method in class me.ahoo.cosid.test.machine.lease.MixedLeaseFormatSpec
-
A new 4.0 distributor on the lease store, with its own local state storage.
- validate() - Method in interface me.ahoo.cosid.accessor.CosIdAccessor
-
Checks that the ID generator, when it is already registered, can generate the type of the id field.
- validate() - Method in class me.ahoo.cosid.accessor.DefaultCosIdAccessor
- validate() - Method in interface me.ahoo.cosid.accessor.registry.CosIdAccessorRegistry
-
Validates every registered accessor against the generators registered now, see
CosIdAccessor.validate(). - validate() - Method in class me.ahoo.cosid.accessor.registry.DefaultAccessorRegistry
- value() - Element in annotation interface me.ahoo.cosid.annotation.CosId
-
Gets the ID generator name.
- value() - Element in annotation interface me.ahoo.cosid.jackson.AsString
- value() - Element in annotation interface me.ahoo.cosid.spring.boot.starter.store.ConditionalOnMachineStoreType
- value() - Element in annotation interface me.ahoo.cosid.spring.boot.starter.store.ConditionalOnSegmentStoreType
- valueOf(String) - Static method in enum class me.ahoo.cosid.jackson.AsString.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Mode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition.TimestampUnit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.ahoo.cosid.util.ProcessId
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class me.ahoo.cosid.jackson.AsString.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Mode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition.TimestampUnit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.ahoo.cosid.util.ProcessId
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verify() - Method in class me.ahoo.cosid.test.ConcurrentGenerateSpec
- verify() - Method in class me.ahoo.cosid.test.ConcurrentGenerateStingSpec
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.Distribute
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeConcurrent
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeIdempotent
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeOverflow
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeRevert
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeSafeGuard
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeStable
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.DistributeStableNotRecycled
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.Guard
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.GuardLost
- verify() - Method in class me.ahoo.cosid.test.machine.distributor.Revert
- verify() - Method in class me.ahoo.cosid.test.ModSpec
- verify() - Method in interface me.ahoo.cosid.test.TestSpec
- version() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
versionrecord component.
W
- wakeup(AffinityJob) - Method in class me.ahoo.cosid.segment.concurrent.DefaultPrefetchWorker
- wakeup(AffinityJob) - Method in interface me.ahoo.cosid.segment.concurrent.PrefetchWorker
-
Wakes up a job for immediate processing.
- watermark() - Method in record class me.ahoo.cosid.proxy.api.LeaseDto
-
Returns the value of the
watermarkrecord component. - watermark() - Method in record class me.ahoo.cosid.proxy.api.ReleaseRequest
-
Returns the value of the
watermarkrecord component. - watermarkNeverMovesBackwards() - Method in class me.ahoo.cosid.test.machine.lease.MachineLeaseStoreSpec
- withCommandTimeout(RedisCommandTimeout) - Method in class me.ahoo.cosid.spring.redis.SpringRedisMachineLeaseStore
-
The same store with another command timeout, for example a longer one for the distribution at startup, where the first command also pays for connecting.
Y
- YEAR - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
- YEAR_MONTH - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
- YEAR_MONTH_DAY - Enum constant in enum class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.IdDefinition.GroupBy
- YearGroupBySupplier - Class in me.ahoo.cosid.segment.grouped.date
-
Year-based group key supplier.
- YearGroupBySupplier(String) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearGroupBySupplier
-
Creates a supplier with the specified pattern.
- YearGroupBySupplier(DateTimeFormatter) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearGroupBySupplier
-
Creates a supplier with the specified formatter.
- YearMonthDayGroupBySupplier - Class in me.ahoo.cosid.segment.grouped.date
-
Year-month-day based group key supplier.
- YearMonthDayGroupBySupplier(String) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearMonthDayGroupBySupplier
-
Creates a supplier with the specified pattern.
- YearMonthDayGroupBySupplier(DateTimeFormatter) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearMonthDayGroupBySupplier
-
Creates a supplier with the specified formatter.
- YearMonthGroupBySupplier - Class in me.ahoo.cosid.segment.grouped.date
-
Year-month based group key supplier.
- YearMonthGroupBySupplier(String) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearMonthGroupBySupplier
-
Creates a supplier with the specified pattern.
- YearMonthGroupBySupplier(DateTimeFormatter) - Constructor for class me.ahoo.cosid.segment.grouped.date.YearMonthGroupBySupplier
-
Creates a supplier with the specified formatter.
Z
- zoneId - Variable in class me.ahoo.cosid.snowflake.SnowflakeIdStateParser
-
Time zone used for timestamp conversion.
- Zookeeper() - Constructor for class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Zookeeper
- Zookeeper() - Constructor for class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor.Zookeeper
- ZOOKEEPER - Static variable in class me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor
- ZOOKEEPER - Static variable in class me.ahoo.cosid.spring.boot.starter.segment.SegmentIdProperties.Distributor
- ZookeeperIdSegmentDistributor - Class in me.ahoo.cosid.zookeeper
-
Zookeeper IdSegment Distributor.
- ZookeeperIdSegmentDistributor(String, String, long, long, CuratorFramework, RetryPolicy) - Constructor for class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributor
- ZookeeperIdSegmentDistributor(String, String, long, long, CuratorFramework, RetryPolicy, CallTimeout) - Constructor for class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributor
-
Create a ZooKeeper segment distributor whose
AbstractIdSegmentDistributor.nextMaxId(long)gives up aftercallTimeout. - ZookeeperIdSegmentDistributorFactory - Class in me.ahoo.cosid.zookeeper
-
Zookeeper IdSegmentDistributor Factory.
- ZookeeperIdSegmentDistributorFactory(CuratorFramework, RetryPolicy) - Constructor for class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributorFactory
- ZookeeperIdSegmentDistributorFactory(CuratorFramework, RetryPolicy, CallTimeout) - Constructor for class me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributorFactory
- zookeeperMachineIdDistributor(ZookeeperMachineLeaseStore, MachineStateStorage, ClockBackwardsSynchronizer) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdZookeeperMachineIdDistributorAutoConfiguration
- zookeeperMachineLeaseStore(CuratorFramework, MachineProperties) - Method in class me.ahoo.cosid.spring.boot.starter.machine.CosIdZookeeperMachineIdDistributorAutoConfiguration
-
The machine id lease store on ZooKeeper; every call is bounded by
cosid.machine.distributor.zookeeper.timeout. - ZookeeperMachineLeaseStore - Class in me.ahoo.cosid.zookeeper
-
MachineLeaseStoreon ZooKeeper, with versioned writes and multi-operation transactions as the compare-and-set. - ZookeeperMachineLeaseStore(CuratorFramework, CallTimeout) - Constructor for class me.ahoo.cosid.zookeeper.ZookeeperMachineLeaseStore
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form