Class ResendSchedulerConfigProperties
java.lang.Object
ch.admin.bit.jeap.errorhandling.domain.resend.scheduler.ResendSchedulerConfigProperties
@Configuration
@ConfigurationProperties(prefix="jeap.errorhandling.resend.scheduler")
public class ResendSchedulerConfigProperties
extends Object
Configuration for the automatic resend scheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanHow often to run the scheduler?Minimal time to keep a lock at this job, seeSchedulerLockMaximal time to keep a lock at this job, seeSchedulerLockintMaximal number of chunks to resend in one runintMaximal of events to send in one chunkinthashCode()voidsetCronExpression(String cronExpression) How often to run the scheduler?voidsetLockAtLeast(Duration lockAtLeast) Minimal time to keep a lock at this job, seeSchedulerLockvoidsetLockAtMost(Duration lockAtMost) Maximal time to keep a lock at this job, seeSchedulerLockvoidsetMaxConsecutiveChunks(int maxConsecutiveChunks) Maximal number of chunks to resend in one runvoidsetMaxResendChunkSize(int maxResendChunkSize) Maximal of events to send in one chunktoString()
-
Constructor Details
-
ResendSchedulerConfigProperties
public ResendSchedulerConfigProperties()
-
-
Method Details
-
getMaxConsecutiveChunks
public int getMaxConsecutiveChunks()Maximal number of chunks to resend in one run -
getMaxResendChunkSize
public int getMaxResendChunkSize()Maximal of events to send in one chunk -
getCronExpression
How often to run the scheduler? Must be a cron expression, seeCronExpression -
getLockAtLeast
Minimal time to keep a lock at this job, seeSchedulerLock -
getLockAtMost
Maximal time to keep a lock at this job, seeSchedulerLock -
setMaxConsecutiveChunks
public void setMaxConsecutiveChunks(int maxConsecutiveChunks) Maximal number of chunks to resend in one run -
setMaxResendChunkSize
public void setMaxResendChunkSize(int maxResendChunkSize) Maximal of events to send in one chunk -
setCronExpression
How often to run the scheduler? Must be a cron expression, seeCronExpression -
setLockAtLeast
Minimal time to keep a lock at this job, seeSchedulerLock -
setLockAtMost
Maximal time to keep a lock at this job, seeSchedulerLock -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-