public class SizeBasedTriggeringPolicy<E> extends TriggeringPolicyBase<E>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_FILE_SIZE
The default maximum file size.
|
static java.lang.String |
SEE_SIZE_FORMAT |
Constructor and Description |
---|
SizeBasedTriggeringPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTriggeringEvent(java.io.File activeFile,
E event)
Should roll-over be triggered at this time?
|
void |
setMaxFileSize(FileSize aMaxFileSize) |
isStarted, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
public static final java.lang.String SEE_SIZE_FORMAT
public static final long DEFAULT_MAX_FILE_SIZE
public boolean isTriggeringEvent(java.io.File activeFile, E event)
TriggeringPolicy
activeFile
- A reference to the currently active log file.event
- A reference to the currently event.public void setMaxFileSize(FileSize aMaxFileSize)
Copyright © 2010 - 2023 Adobe. All Rights Reserved