I wrote a scheduler
@Documented
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Scheduled(cron="0 0 0 * * *")
public @interface DeleteAndCopy{
}
What means every midnight. The process takes about 4 hours. (0am-4am)
Now there is a maintainance day on 28.07.2017 at 1:00 pm.
I decided to not copy data at this date to not have an unexpected state. How to exclude this date from the execution?