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 aProcessLimits
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themaxFileSize
record component.long
Returns the value of themaxThreads
record component.long
Returns the value of themaxVirtualMemorySize
record component.final String
toString()
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 aProcessLimits
record class.- Parameters:
maxThreads
- the value for themaxThreads
record componentmaxVirtualMemorySize
- the value for themaxVirtualMemorySize
record componentmaxFileSize
- the value for themaxFileSize
record 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 themaxThreads
record component.- Returns:
- the value of the
maxThreads
record component
-
maxVirtualMemorySize
public long maxVirtualMemorySize()Returns the value of themaxVirtualMemorySize
record component.- Returns:
- the value of the
maxVirtualMemorySize
record component
-
maxFileSize
public long maxFileSize()Returns the value of themaxFileSize
record component.- Returns:
- the value of the
maxFileSize
record component
-