public class OrRotateStrategy extends Object implements RotateStrategy
isRotationNeeded method checks the first rotation
strategy object. If a rotation is needed, this result is returned.
If not, the next rotation strategy object is checked, and so on.| Constructor and Description |
|---|
OrRotateStrategy(RotateStrategy[] strategies)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRotationNeeded(String data,
File file)
check if now a log rotation is neccessary.
|
void |
reset()
reset.
|
public OrRotateStrategy(RotateStrategy[] strategies)
strategies - the set of rotation strategiespublic void reset()
reset in interface RotateStrategypublic boolean isRotationNeeded(String data, File file)
isRotationNeeded method checks the first rotation
strategy object. If a rotation is needed, this result is returned.
If not the next rotation strategy object is asked and so on.isRotationNeeded in interface RotateStrategydata - the last message written to the log systemfile - ???Copyright © 1997–2019. All rights reserved.