Package org.wildfly.security.audit
Class PeriodicRotatingFileAuditEndpoint.Builder
java.lang.Object
org.wildfly.security.audit.FileAuditEndpoint.Builder
org.wildfly.security.audit.PeriodicRotatingFileAuditEndpoint.Builder
- Enclosing class:
- PeriodicRotatingFileAuditEndpoint
A builder for periodic rotating file audit endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct a new instance.Set the suffix string.setTimeZone(ZoneId timeZone) Set the configured time zone for this handler.Methods inherited from class org.wildfly.security.audit.FileAuditEndpoint.Builder
setCharset, setDateTimeFormatterSupplier, setFlushOnAccept, setLocation, setSyncOnAccept
-
Method Details
-
setTimeZone
Set the configured time zone for this handler.- Parameters:
timeZone- the configured time zone- Returns:
- this builder
-
setSuffix
public PeriodicRotatingFileAuditEndpoint.Builder setSuffix(String suffix) throws IllegalArgumentException Set the suffix string. The string is in a format which can be understood byDateTimeFormatter. The period of the rotation is automatically calculated based on the suffix.- Parameters:
suffix- the suffix- Returns:
- this builder
- Throws:
IllegalArgumentException- if the suffix is not valid
-
build
Construct a new instance.- Overrides:
buildin classFileAuditEndpoint.Builder- Returns:
- the built audit endpoint.
- Throws:
IOException- if an I/O error occurs.
-