Package org.elasticsearch.nativeaccess
Record Class ProcessLimits
java.lang.Object
java.lang.Record
org.elasticsearch.nativeaccess.ProcessLimits
- Record Components:
maxThreads- The maximum number of threads that may be created.maxVirtualMemorySize- The maximum size of virtual memory.maxFileSize- The maximum size of a single file.
public record ProcessLimits(long maxThreads, long maxVirtualMemorySize, long maxFileSize)
extends Record
Limits for the current process.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessLimits(long maxThreads, long maxVirtualMemorySize, long maxFileSize) Creates an instance of aProcessLimitsrecord 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 themaxFileSizerecord component.longReturns the value of themaxThreadsrecord component.longReturns the value of themaxVirtualMemorySizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNKNOWN
public static final long UNKNOWN- See Also:
-
UNLIMITED
public static final long UNLIMITED- See Also:
-
-
Constructor Details
-
ProcessLimits
public ProcessLimits(long maxThreads, long maxVirtualMemorySize, long maxFileSize) Creates an instance of aProcessLimitsrecord class.- Parameters:
maxThreads- the value for themaxThreadsrecord componentmaxVirtualMemorySize- the value for themaxVirtualMemorySizerecord componentmaxFileSize- the value for themaxFileSizerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
maxThreads
public long maxThreads()Returns the value of themaxThreadsrecord component.- Returns:
- the value of the
maxThreadsrecord component
-
maxVirtualMemorySize
public long maxVirtualMemorySize()Returns the value of themaxVirtualMemorySizerecord component.- Returns:
- the value of the
maxVirtualMemorySizerecord component
-
maxFileSize
public long maxFileSize()Returns the value of themaxFileSizerecord component.- Returns:
- the value of the
maxFileSizerecord component
-