public class RevolvingFileStrategy extends Object implements FileStrategy
| Constructor and Description |
|---|
RevolvingFileStrategy(File baseFile,
int maxRotations)
Creation of a new instane ofthe revolving file strategy.
|
RevolvingFileStrategy(File baseFile,
int initialRotation,
int maxRotations)
Creation of a new instane ofthe revolving file strategy.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentRotation()
Retrieve the current rotation number.
|
File |
nextFile()
Calculate the real file name from the base filename.
|
public RevolvingFileStrategy(File baseFile, int maxRotations)
baseFile - the base filemaxRotations - the maximum number of rotations ??public RevolvingFileStrategy(File baseFile, int initialRotation, int maxRotations)
baseFile - the base fileinitialRotation - the number of initial rotations ??maxRotations - the maximum number of rotations??public File nextFile()
nextFile in interface FileStrategypublic int getCurrentRotation()
Copyright © 1997–2019. All rights reserved.