Class CosIdSnowflakeKeyGenerateAlgorithm

  • All Implemented Interfaces:
    org.apache.shardingsphere.infra.instance.InstanceContextAware, org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI, KeyGenerateAlgorithm

    public final class CosIdSnowflakeKeyGenerateAlgorithm
    extends Object
    implements KeyGenerateAlgorithm, org.apache.shardingsphere.infra.instance.InstanceContextAware
    CosId snowflake key generate algorithm.
    • Constructor Detail

      • CosIdSnowflakeKeyGenerateAlgorithm

        public CosIdSnowflakeKeyGenerateAlgorithm()
    • Method Detail

      • init

        public void init​(Properties props)
        Specified by:
        init in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
      • setInstanceContext

        public void setInstanceContext​(org.apache.shardingsphere.infra.instance.InstanceContext instanceContext)
        Specified by:
        setInstanceContext in interface org.apache.shardingsphere.infra.instance.InstanceContextAware
      • getType

        public String getType()
        Specified by:
        getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI