org.sonatype.gossip.extra.listener
Class FileSizeRollingStrategy
java.lang.Object
org.sonatype.gossip.extra.listener.FileSizeRollingStrategy
- All Implemented Interfaces:
- FileListener.RollingStrategy
public class FileSizeRollingStrategy
- extends Object
- implements FileListener.RollingStrategy
A file-size FileListener.RollingStrategy
.
- Since:
- 1.6
- Author:
- Jason Dillon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSizeRollingStrategy
public FileSizeRollingStrategy()
getMaximumBackupIndex
public int getMaximumBackupIndex()
setMaximumBackupIndex
public void setMaximumBackupIndex(int n)
getMaximumFileSize
public long getMaximumFileSize()
setMaximumFileSize
public void setMaximumFileSize(long n)
roll
public boolean roll(FileListener listener)
- Specified by:
roll
in interface FileListener.RollingStrategy
Copyright © 2008-2012 Sonatype. All Rights Reserved.