Record Class AuditWriteSettings
java.lang.Object
java.lang.Record
io.leandev.appfuse.audit.AuditWriteSettings
-
Constructor Summary
ConstructorsConstructorDescriptionAuditWriteSettings(boolean enabled, int queueCapacity, int batchSize, Duration flushInterval, int maxPayloadBytes, Duration statementTimeout, Duration shutdownWait) Creates an instance of aAuditWriteSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.static AuditWriteSettingsdefaults()booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflushIntervalrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPayloadBytesrecord component.intReturns the value of thequeueCapacityrecord component.Returns the value of theshutdownWaitrecord component.Returns the value of thestatementTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditWriteSettings
public AuditWriteSettings(boolean enabled, int queueCapacity, int batchSize, Duration flushInterval, int maxPayloadBytes, Duration statementTimeout, Duration shutdownWait) Creates an instance of aAuditWriteSettingsrecord class.- Parameters:
enabled- the value for theenabledrecord componentqueueCapacity- the value for thequeueCapacityrecord componentbatchSize- the value for thebatchSizerecord componentflushInterval- the value for theflushIntervalrecord componentmaxPayloadBytes- the value for themaxPayloadBytesrecord componentstatementTimeout- the value for thestatementTimeoutrecord componentshutdownWait- the value for theshutdownWaitrecord component
-
-
Method Details
-
defaults
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
queueCapacity
public int queueCapacity()Returns the value of thequeueCapacityrecord component.- Returns:
- the value of the
queueCapacityrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
flushInterval
Returns the value of theflushIntervalrecord component.- Returns:
- the value of the
flushIntervalrecord component
-
maxPayloadBytes
public int maxPayloadBytes()Returns the value of themaxPayloadBytesrecord component.- Returns:
- the value of the
maxPayloadBytesrecord component
-
statementTimeout
Returns the value of thestatementTimeoutrecord component.- Returns:
- the value of the
statementTimeoutrecord component
-
shutdownWait
Returns the value of theshutdownWaitrecord component.- Returns:
- the value of the
shutdownWaitrecord component
-