Policy
public final class WeeklyPolicy extends AbstractTimeBasedPolicy
Constructor | Description |
---|---|
WeeklyPolicy() |
Trigger a rollover every week (=
WeeklyPolicy(1) ). |
WeeklyPolicy(int dayOfWeek) |
Trigger the first rollover at 00:00 at the defined day of week.
|
public WeeklyPolicy()
WeeklyPolicy(1)
).public WeeklyPolicy(int dayOfWeek) throws IllegalArgumentException
dayOfWeek
- Day of week (between 1..7) for rolloverIllegalArgumentException
- if dayOfWeek is out of range (1..7)Copyright © 2019. All rights reserved.