Record Class TachyonConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.spigot.config.TachyonConfig
-
Constructor Summary
ConstructorsConstructorDescriptionTachyonConfig(String serverName, String grpcHost, int grpcPort, boolean logHeartBeats, String metricsHost, int metricsPort) Creates an instance of aTachyonConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TachyonConfigfromFile(org.bukkit.configuration.file.FileConfiguration configuration) grpcHost()Returns the value of thegrpcHostrecord component.intgrpcPort()Returns the value of thegrpcPortrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelogHeartBeatsrecord component.Returns the value of themetricsHostrecord component.intReturns the value of themetricsPortrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TachyonConfig
public TachyonConfig(String serverName, String grpcHost, int grpcPort, boolean logHeartBeats, String metricsHost, int metricsPort) Creates an instance of aTachyonConfigrecord class.- Parameters:
serverName- the value for theserverNamerecord componentgrpcHost- the value for thegrpcHostrecord componentgrpcPort- the value for thegrpcPortrecord componentlogHeartBeats- the value for thelogHeartBeatsrecord componentmetricsHost- the value for themetricsHostrecord componentmetricsPort- the value for themetricsPortrecord component
-
-
Method Details
-
fromFile
-
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. -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
grpcHost
Returns the value of thegrpcHostrecord component.- Returns:
- the value of the
grpcHostrecord component
-
grpcPort
public int grpcPort()Returns the value of thegrpcPortrecord component.- Returns:
- the value of the
grpcPortrecord component
-
logHeartBeats
public boolean logHeartBeats()Returns the value of thelogHeartBeatsrecord component.- Returns:
- the value of the
logHeartBeatsrecord component
-
metricsHost
Returns the value of themetricsHostrecord component.- Returns:
- the value of the
metricsHostrecord component
-
metricsPort
public int metricsPort()Returns the value of themetricsPortrecord component.- Returns:
- the value of the
metricsPortrecord component
-