T
- the type of the concrete audit event built by this builderTBuilder
- the type of the concrete audit event builder.protected abstract static class AbstractAuditEvent.AbstractAuditEventBuilder<T extends AbstractAuditEvent,TBuilder extends AbstractAuditEvent.AbstractAuditEventBuilder<T,TBuilder>> extends Object implements AuditEvent.AuditEventBuilder<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractAuditEventBuilder(Class<? extends TBuilder> builderClass) |
Modifier and Type | Method and Description |
---|---|
T |
build()
Builds an audit event.
|
protected abstract void |
buildAuditMessage(StringBuilder builder)
Appends details from this builder to the detailed description of the audit event.
|
protected abstract T |
newAuditEvent()
Creates a new audit event instance from this builder.
|
protected TBuilder |
self() |
TBuilder |
withTimestamp(Long timestamp)
The timestamp of the audit event.
|
protected abstract T newAuditEvent()
protected abstract void buildAuditMessage(StringBuilder builder)
builder
- builder for the audit event details.public TBuilder withTimestamp(Long timestamp)
timestamp
- public final T build()
build
in interface AuditEvent.AuditEventBuilder<T extends AbstractAuditEvent>
protected TBuilder self()
Copyright © 2022 Apache Software Foundation. All rights reserved.