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 RotateStrategy
public boolean isRotationNeeded(String data, File file)
isRotationNeeded
in interface RotateStrategy
data
- not usedfile
- not usedCopyright © 1997–2017. All rights reserved.