1 package ch.qos.logback.core.rolling; 2 3 class ConfigParameters { 4 5 long simulatedTime; 6 int maxHistory; 7 int simulatedNumberOfPeriods; 8 int startInactivity = -1; 9 int numInactivityPeriods; 10 String fileNamePattern; 11 long periodDurationInMillis = TimeBasedRollingWithArchiveRemoval_Test.MILLIS_IN_DAY; 12 long sizeCap; 13 14 ConfigParameters(long simulatedTime) { 15 this.simulatedTime = simulatedTime; 16 } 17 18 ConfigParameters maxHistory(int maxHistory) { 19 this.maxHistory = maxHistory; 20 return this; 21 } 22 23 ConfigParameters simulatedNumberOfPeriods(int simulatedNumberOfPeriods) { 24 this.simulatedNumberOfPeriods = simulatedNumberOfPeriods; 25 return this; 26 } 27 28 ConfigParameters startInactivity(int startInactivity) { 29 this.startInactivity = startInactivity; 30 return this; 31 } 32 33 ConfigParameters numInactivityPeriods(int numInactivityPeriods) { 34 this.numInactivityPeriods = numInactivityPeriods; 35 return this; 36 } 37 38 ConfigParameters fileNamePattern(String fileNamePattern) { 39 this.fileNamePattern = fileNamePattern; 40 return this; 41 } 42 43 ConfigParameters periodDurationInMillis(long periodDurationInMillis) { 44 this.periodDurationInMillis = periodDurationInMillis; 45 return this; 46 } 47 48 ConfigParameters sizeCap(long sizeCap) { 49 this.sizeCap = sizeCap; 50 return this; 51 } 52 }