NEXUS-7789: Use enums in schedules

Instead of type unsafe int constants.

Issue
https://issues.sonatype.org/browse/NEXUS-7789

CI
http://bamboo.s/browse/NX-OSSF435
Confused me briefly - I thought this was some kind of MAX_INT/FAR_FUTURE sort of thing. Maybe a short comment?