Class LightIdProviderProp

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      long getTimeout() timeout millis of loading.
      void setTimeout(long timeout) timeout millis of loading.
      int getMaxError() max error count of loading.
      void setMaxError(int maxError) max error count of loading.
      int getMaxCount() max id count of per loading.
      void setMaxCount(int maxCount) max id count of per loading.
      long getErrAlive() no attempt in number of millis if error exists.
      void setErrAlive(long errAlive) no attempt in number of millis if error exists.
      String getBlockType()
      method to provide blockId
      - `sql` - query database, return the id
      - `fix` - fixed number, int
      - `biz` - use a custom business bean
      
      void setBlockType(String blockType)
      method to provide blockId
      - `sql` - query database, return the id
      - `fix` - fixed number, int
      - `biz` - use a custom business bean
      
      String getBlockPara() parameters of the provide method, select for sql, and number for fix.
      void setBlockPara(String blockPara) parameters of the provide method, select for sql, and number for fix.
      String getSequenceInsert()
      insert statement for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      void setSequenceInsert(String sequenceInsert)
      insert statement for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      String getSequenceUpdate()
      update statement for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      void setSequenceUpdate(String sequenceUpdate)
      update statement for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      String getSequenceGetOne()
      fetch one sql for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      void setSequenceGetOne(String sequenceGetOne)
      fetch one sql for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      String getSequenceGetAll()
      fetch all sql for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      void setSequenceGetAll(String sequenceGetAll)
      fetch all sql for JdbcTemplate.
      See `LightSequenceModifyJdbc` for details, the parameters are,
      - `String` seq_name - sequence name
      - `int` block_id - data block id
      - `long` next_val - next seq
      - `int` step_val - step value
      - `String` comments - description
      
      String getSequenceAdjust() try to verify and adjust the id in the database to make it correct.
      void setSequenceAdjust(String sequenceAdjust) try to verify and adjust the id in the database to make it correct.
      String getMonotonic() the LightId monotonic increasing type, jvm|db|hz - jvm, monotonic in the jvm - db, monotonic in the database - hz, monotonic in the hazelcast
      void setMonotonic(String monotonic) the LightId monotonic increasing type, jvm|db|hz - jvm, monotonic in the jvm - db, monotonic in the database - hz, monotonic in the hazelcast
      boolean equals(@Nullable() Object o)
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LightIdProviderProp

        LightIdProviderProp()
    • Method Detail

      • getTimeout

         long getTimeout()

        timeout millis of loading.

      • setTimeout

         void setTimeout(long timeout)

        timeout millis of loading.

      • getMaxError

         int getMaxError()

        max error count of loading.

      • setMaxError

         void setMaxError(int maxError)

        max error count of loading.

      • getMaxCount

         int getMaxCount()

        max id count of per loading.

      • setMaxCount

         void setMaxCount(int maxCount)

        max id count of per loading.

      • getErrAlive

         long getErrAlive()

        no attempt in number of millis if error exists.

      • setErrAlive

         void setErrAlive(long errAlive)

        no attempt in number of millis if error exists.

      • getBlockType

         String getBlockType()
        method to provide blockId
        - `sql` - query database, return the id
        - `fix` - fixed number, int
        - `biz` - use a custom business bean
        
      • setBlockType

         void setBlockType(String blockType)
        method to provide blockId
        - `sql` - query database, return the id
        - `fix` - fixed number, int
        - `biz` - use a custom business bean
        
      • getBlockPara

         String getBlockPara()

        parameters of the provide method, select for sql, and number for fix.

      • setBlockPara

         void setBlockPara(String blockPara)

        parameters of the provide method, select for sql, and number for fix.

      • getSequenceInsert

         String getSequenceInsert()
        insert statement for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • setSequenceInsert

         void setSequenceInsert(String sequenceInsert)
        insert statement for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • getSequenceUpdate

         String getSequenceUpdate()
        update statement for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • setSequenceUpdate

         void setSequenceUpdate(String sequenceUpdate)
        update statement for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • getSequenceGetOne

         String getSequenceGetOne()
        fetch one sql for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • setSequenceGetOne

         void setSequenceGetOne(String sequenceGetOne)
        fetch one sql for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • getSequenceGetAll

         String getSequenceGetAll()
        fetch all sql for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • setSequenceGetAll

         void setSequenceGetAll(String sequenceGetAll)
        fetch all sql for JdbcTemplate.
        See `LightSequenceModifyJdbc` for details, the parameters are,
        - `String` seq_name - sequence name
        - `int` block_id - data block id
        - `long` next_val - next seq
        - `int` step_val - step value
        - `String` comments - description
        
      • getSequenceAdjust

         String getSequenceAdjust()

        try to verify and adjust the id in the database to make it correct. Set to `empty` to ignore this feature. Enter `table name` (as sequence name), return `table name` and `column name` in the database.

      • setSequenceAdjust

         void setSequenceAdjust(String sequenceAdjust)

        try to verify and adjust the id in the database to make it correct. Set to `empty` to ignore this feature. Enter `table name` (as sequence name), return `table name` and `column name` in the database.

      • getMonotonic

         String getMonotonic()

        the LightId monotonic increasing type, jvm|db|hz - jvm, monotonic in the jvm - db, monotonic in the database - hz, monotonic in the hazelcast

      • setMonotonic

         void setMonotonic(String monotonic)

        the LightId monotonic increasing type, jvm|db|hz - jvm, monotonic in the jvm - db, monotonic in the database - hz, monotonic in the hazelcast