public final class RolloverDescriptionImpl extends Object implements RolloverDescription
Constructor and Description |
---|
RolloverDescriptionImpl(String activeFileName,
boolean append,
Action synchronous,
Action asynchronous)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getActiveFileName()
Active log file name after rollover.
|
boolean |
getAppend()
Specifies if active file should be opened for appending.
|
Action |
getAsynchronous()
Action to be completed after close of current active log file
and before next rollover attempt, may be executed asynchronously.
|
Action |
getSynchronous()
Action to be completed after close of current active log file
before returning control to caller.
|
public RolloverDescriptionImpl(String activeFileName, boolean append, Action synchronous, Action asynchronous)
activeFileName
- active log file name after rollover, may not be null.append
- true if active log file after rollover should be opened for appending.synchronous
- action to be completed after close of current active log file, may be null.asynchronous
- action to be completed after close of current active log file and
before next rollover attempt.public String getActiveFileName()
getActiveFileName
in interface RolloverDescription
public boolean getAppend()
getAppend
in interface RolloverDescription
public Action getSynchronous()
getSynchronous
in interface RolloverDescription
public Action getAsynchronous()
getAsynchronous
in interface RolloverDescription
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.