uk.org.simonsite.log4j.appender
Class CompositeRoller

java.lang.Object
  extended by uk.org.simonsite.log4j.appender.CompositeRoller
All Implemented Interfaces:
FileRollable

final class CompositeRoller
extends Object
implements FileRollable

Composes the behaviour of the startup roller, file-size roller, and the time-based roller. The startup roller takes precedence, followed by the time-based roller, with the file-size roller being evaluated last in the chain.

Version:
3.0
Author:
Simon Park

Constructor Summary
CompositeRoller(TimeAndSizeRollingAppender rollingAppender)
           
 
Method Summary
 TimeAndSizeRollingAppender getAppender()
           
 boolean roll(LoggingEvent loggingEvent)
          Delegates file rolling to composed objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeRoller

CompositeRoller(TimeAndSizeRollingAppender rollingAppender)
Method Detail

roll

public final boolean roll(LoggingEvent loggingEvent)
Delegates file rolling to composed objects.

Specified by:
roll in interface FileRollable
See Also:
FileRollable.roll(LoggingEvent)

getAppender

public final TimeAndSizeRollingAppender getAppender()