public class RotateStrategyByDate extends Object implements RotateStrategy
| Constructor and Description |
|---|
RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy.
|
RotateStrategyByDate(String pattern)
Creation of a new rotation strategy based on a date policy
using a supplied pattern.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRotationNeeded(String data,
File file)
Test is a rotation is required.
|
void |
reset()
Reset the strategy.
|
public RotateStrategyByDate()
public RotateStrategyByDate(String pattern)
pattern - the message formatting patternpublic void reset()
reset in interface RotateStrategypublic boolean isRotationNeeded(String data, File file)
isRotationNeeded in interface RotateStrategydata - not usedfile - not usedCopyright © 1997–2019. All rights reserved.