Record Class AuditConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.audit.AuditConfig
public record AuditConfig(int bufferSize, int bufferFlushDelay, int bufferDrainPerCycles, boolean enableLoginLogs, boolean enableLogoutLogs)
extends Record
Project Tachyon
Class AuditConfig
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 24/04/2026
-
Constructor Summary
ConstructorsConstructorDescriptionAuditConfig(int bufferSize, int bufferFlushDelay, int bufferDrainPerCycles, boolean enableLoginLogs, boolean enableLogoutLogs) Creates an instance of aAuditConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferDrainPerCyclesrecord component.intReturns the value of thebufferFlushDelayrecord component.intReturns the value of thebufferSizerecord component.booleanReturns the value of theenableLoginLogsrecord component.booleanReturns the value of theenableLogoutLogsrecord component.final booleanIndicates whether some other object is "equal to" this one.static AuditConfigfromFile(@NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditConfig
public AuditConfig(int bufferSize, int bufferFlushDelay, int bufferDrainPerCycles, boolean enableLoginLogs, boolean enableLogoutLogs) Creates an instance of aAuditConfigrecord class.- Parameters:
bufferSize- the value for thebufferSizerecord componentbufferFlushDelay- the value for thebufferFlushDelayrecord componentbufferDrainPerCycles- the value for thebufferDrainPerCyclesrecord componentenableLoginLogs- the value for theenableLoginLogsrecord componentenableLogoutLogs- the value for theenableLogoutLogsrecord component
-
-
Method Details
-
fromFile
public static AuditConfig fromFile(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
bufferFlushDelay
public int bufferFlushDelay()Returns the value of thebufferFlushDelayrecord component.- Returns:
- the value of the
bufferFlushDelayrecord component
-
bufferDrainPerCycles
public int bufferDrainPerCycles()Returns the value of thebufferDrainPerCyclesrecord component.- Returns:
- the value of the
bufferDrainPerCyclesrecord component
-
enableLoginLogs
public boolean enableLoginLogs()Returns the value of theenableLoginLogsrecord component.- Returns:
- the value of the
enableLoginLogsrecord component
-
enableLogoutLogs
public boolean enableLogoutLogs()Returns the value of theenableLogoutLogsrecord component.- Returns:
- the value of the
enableLogoutLogsrecord component
-