diff --git a/src/main/java/com/mgnt/lifecycle/management/backgroundrunner/package-info.java b/src/main/java/com/mgnt/lifecycle/management/backgroundrunner/package-info.java index 27bc07c..aa93cfa 100644 --- a/src/main/java/com/mgnt/lifecycle/management/backgroundrunner/package-info.java +++ b/src/main/java/com/mgnt/lifecycle/management/backgroundrunner/package-info.java @@ -1,7 +1,7 @@ /** * This package contains infrastructure that can run user implemented Task classes in a separate thread at configured * time interval. In order to create such task user will need to create a class that extends - * {@link com.mgnt.lifecycle.management.backgroundrunner.BaseBackgroundRunnable} and override 4 methods: + * {@link com.mgnt.lifecycle.management.backgroundrunner.BaseBackgroundRunnable} class and override 4 methods: * {@link com.mgnt.lifecycle.management.backgroundrunner.BaseBackgroundRunnable#initParamsForSpecificImplementation()}
, * {@link com.mgnt.lifecycle.management.backgroundrunner.BackgroundRunnable#getTaskExecutionInterval()}
, * {@link com.mgnt.lifecycle.management.backgroundrunner.BackgroundRunnable#setParamValue(com.mgnt.utils.entities.TimeInterval, @@ -16,9 +16,9 @@ * would look like {@code @Scheduled(fixedRate = 32400000)}. (32400000 is number of milliseconds in 9 hours) This is * hardly intuitive... What if you could write {@code @Scheduled(fixedRate = 9h)}? Well, that would be great, but you * can not (at least with currently available latest versions). This is what this infrastructure provides. Especially - * if you annotate one of your properties with annotation {@code @Value("${task.retry.interval}")} and then you will - * have a properties file that will have a property {@code task.retry.interval=9h} instead of - * {@code task.retry.interval=32400000}. So there is a tradeof here. This infrastructure definitely requires more effort + * if you annotate one of your properties with annotation {@code @Value("${task.execution.interval}")} and then you will + * have a properties file that will have a property {@code task.execution.interval=9h} instead of + * {@code task.execution.interval=32400000}. So there is a trade-off here. This infrastructure definitely requires more effort * from a programmer then mere method annotation with {@code @Scheduled}, but provides very intuitive and humanly readable * way to define time interval properties. Internally this framework uses utility provided by this library to parse those * time intervals. (For details see {@link com.mgnt.utils.TextUtils#parsingStringToTimeInterval(java.lang.String)}) Also