public abstract class AbstractRolloverStrategy extends java.lang.Object implements RolloverStrategy, org.springframework.core.Ordered
RolloverStrategy
implementations. This class also implements Ordered
interface to be
useful with ChainedFileRolloverStrategy
and OrderedComposite
.Constructor and Description |
---|
AbstractRolloverStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract RolloverStrategy |
createInstance()
Creates a new instance of
RolloverStrategy . |
int |
getOrder()
Implementation should override this method to define a chaining order.
|
long |
getPosition() |
void |
setOrder(int order)
Sets the order.
|
void |
setWritePosition(long position)
Sets the write position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasRolled, reset
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Ordered.getOrder()
public void setWritePosition(long position)
RolloverStrategy
setWritePosition
in interface RolloverStrategy
position
- the new write positionpublic abstract RolloverStrategy createInstance()
RolloverStrategyFactory
RolloverStrategy
.createInstance
in interface RolloverStrategyFactory<RolloverStrategy>
public void setOrder(int order)
order
- the new orderOrdered
public long getPosition()