public interface RotatableObject
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the rotatable file.
|
long |
getBytesWritten()
Retrieves the number of bytes written to the file.
|
org.joda.time.DateTime |
getLastRotationTime()
Retrieves the last time the file was rotated.
|
void |
registerRotationHooks(RotationHooks rotationHooks)
Registers hooks into the rotation process.
|
void |
rotateIfNeeded()
Checks the rotatable file for rotation then retention.
|
long getBytesWritten()
org.joda.time.DateTime getLastRotationTime()
void rotateIfNeeded() throws IOException
RotationPolicy
's are true. The old audit files are retained/deleted according to
the RetentionPolicy
's configured.IOException
- If unable to rotateIfNeeded the audit file.void close() throws IOException
IOException
- If an exception occurs while closing.void registerRotationHooks(RotationHooks rotationHooks)
rotationHooks
- The RotationHooks
into the rotation process.Copyright © 2025 Open Identity Platform Community. All rights reserved.