Record Class CAServerLimitsConfiguration
java.lang.Object
java.lang.Record
com.io7m.cardant.server.api.CAServerLimitsConfiguration
- Record Components:
maximumFileUploadSizeOctets- The maximum permitted size of uploaded files (in octets).maximumCommandSizeOctets- The maximum permitted size of ordinary commands (in octets).
public record CAServerLimitsConfiguration(long maximumFileUploadSizeOctets, long maximumCommandSizeOctets)
extends Record
Configuration information for limits.
-
Constructor Summary
ConstructorsConstructorDescriptionCAServerLimitsConfiguration(long maximumFileUploadSizeOctets, long maximumCommandSizeOctets) Creates an instance of aCAServerLimitsConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaximumCommandSizeOctetsrecord component.longReturns the value of themaximumFileUploadSizeOctetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAServerLimitsConfiguration
public CAServerLimitsConfiguration(long maximumFileUploadSizeOctets, long maximumCommandSizeOctets) Creates an instance of aCAServerLimitsConfigurationrecord class.- Parameters:
maximumFileUploadSizeOctets- the value for themaximumFileUploadSizeOctetsrecord componentmaximumCommandSizeOctets- the value for themaximumCommandSizeOctetsrecord component
-
-
Method Details
-
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. -
maximumFileUploadSizeOctets
public long maximumFileUploadSizeOctets()Returns the value of themaximumFileUploadSizeOctetsrecord component.- Returns:
- the value of the
maximumFileUploadSizeOctetsrecord component
-
maximumCommandSizeOctets
public long maximumCommandSizeOctets()Returns the value of themaximumCommandSizeOctetsrecord component.- Returns:
- the value of the
maximumCommandSizeOctetsrecord component
-