Class LightIdProviderProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = LightIdProviderProp.Key) public class LightIdProviderProp
- Since:
2021-02-13
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic longtimeoutpublic final static StringKey$timeoutpublic intmaxErrorpublic final static StringKey$maxErrorpublic intmaxCountpublic final static StringKey$maxCountpublic longerrAlivepublic final static StringKey$errAlivepublic StringblockTypepublic final static StringKey$blockTypepublic StringblockParapublic final static StringKey$blockParapublic StringsequenceInsertpublic final static StringKey$sequenceInsertpublic StringsequenceUpdatepublic final static StringKey$sequenceUpdatepublic StringsequenceGetOnepublic final static StringKey$sequenceGetOnepublic StringsequenceGetAllpublic final static StringKey$sequenceGetAllpublic StringsequenceAdjustpublic final static StringKey$sequenceAdjustpublic Stringmonotonicpublic final static StringKey$monotonic
-
Constructor Summary
Constructors Constructor Description LightIdProviderProp()
-
Method Summary
Modifier and Type Method Description longgetTimeout()timeout millis of loading. voidsetTimeout(long timeout)timeout millis of loading. intgetMaxError()max error count of loading. voidsetMaxError(int maxError)max error count of loading. intgetMaxCount()max id count of per loading. voidsetMaxCount(int maxCount)max id count of per loading. longgetErrAlive()no attempt in number of millis if error exists. voidsetErrAlive(long errAlive)no attempt in number of millis if error exists. StringgetBlockType()method to provide blockId - `sql` - query database, return the id - `fix` - fixed number, int - `biz` - use a custom business beanvoidsetBlockType(String blockType)method to provide blockId - `sql` - query database, return the id - `fix` - fixed number, int - `biz` - use a custom business beanStringgetBlockPara()parameters of the provide method, select for sql, and number for fix. voidsetBlockPara(String blockPara)parameters of the provide method, select for sql, and number for fix. StringgetSequenceInsert()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 - descriptionvoidsetSequenceInsert(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 - descriptionStringgetSequenceUpdate()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 - descriptionvoidsetSequenceUpdate(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 - descriptionStringgetSequenceGetOne()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 - descriptionvoidsetSequenceGetOne(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 - descriptionStringgetSequenceGetAll()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 - descriptionvoidsetSequenceGetAll(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 - descriptionStringgetSequenceAdjust()try to verify and adjust the id in the database to make it correct. voidsetSequenceAdjust(String sequenceAdjust)try to verify and adjust the id in the database to make it correct. StringgetMonotonic()the LightId monotonic increasing type, jvm|db|hz - jvm, monotonic in the jvm - db, monotonic in the database - hz, monotonic in the hazelcast voidsetMonotonic(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 booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
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
-
hashCode
int hashCode()
-
-
-
-