Package org.restheart.configuration
Record Class CoreModule
java.lang.Object
java.lang.Record
org.restheart.configuration.CoreModule
public record CoreModule(String name, String pluginsDirectory, List<String> pluginsPackages, boolean pluginsScanningVerbose, String baseUrl, int ioThreads, int workersSchedulerParallelism, int workersSchedulerMaxPoolSize, boolean buffersPooling, int bufferSize, boolean directBuffers, boolean forceGzipEncoding, boolean allowUnescapedCharsInUrl)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionCoreModule(String name, String pluginsDirectory, List<String> pluginsPackages, boolean pluginsScanningVerbose, String baseUrl, int ioThreads, int workersSchedulerParallelism, int workersSchedulerMaxPoolSize, boolean buffersPooling, int bufferSize, boolean directBuffers, boolean forceGzipEncoding, boolean allowUnescapedCharsInUrl) Creates an instance of aCoreModulerecord class.CoreModule(Map<String, Object> conf, boolean silent) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowUnescapedCharsInUrlrecord component.baseUrl()Returns the value of thebaseUrlrecord component.intReturns the value of thebufferSizerecord component.booleanReturns the value of thebuffersPoolingrecord component.static CoreModulebooleanReturns the value of thedirectBuffersrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceGzipEncodingrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theioThreadsrecord component.name()Returns the value of thenamerecord component.Returns the value of thepluginsDirectoryrecord component.Returns the value of thepluginsPackagesrecord component.booleanReturns the value of thepluginsScanningVerboserecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theworkersSchedulerMaxPoolSizerecord component.intReturns the value of theworkersSchedulerParallelismrecord component.
-
Field Details
-
CORE_KEY
- See Also:
-
INSTANCE_NAME_KEY
- See Also:
-
PLUGINS_DIRECTORY_PATH_KEY
- See Also:
-
PLUGINS_PACKAGES_KEY
- See Also:
-
PLUGINS_SCANNING_VERBOSE_KEY
- See Also:
-
BASE_URL_KEY
- See Also:
-
IO_THREADS_KEY
- See Also:
-
WORKERS_SCHEDULER_PARALLELISM_KEY
- See Also:
-
WORKERS_SCHEDULER_MAX_POOL_SIZE_KEY
- See Also:
-
BUFFERS_POOLING_KEY
- See Also:
-
BUFFER_SIZE_KEY
- See Also:
-
DIRECT_BUFFERS_KEY
- See Also:
-
FORCE_GZIP_ENCODING_KEY
- See Also:
-
ALLOW_UNESCAPED_CHARS_IN_ULR_KEY
- See Also:
-
-
Constructor Details
-
CoreModule
-
CoreModule
public CoreModule(String name, String pluginsDirectory, List<String> pluginsPackages, boolean pluginsScanningVerbose, String baseUrl, int ioThreads, int workersSchedulerParallelism, int workersSchedulerMaxPoolSize, boolean buffersPooling, int bufferSize, boolean directBuffers, boolean forceGzipEncoding, boolean allowUnescapedCharsInUrl) Creates an instance of aCoreModulerecord class.- Parameters:
name- the value for thenamerecord componentpluginsDirectory- the value for thepluginsDirectoryrecord componentpluginsPackages- the value for thepluginsPackagesrecord componentpluginsScanningVerbose- the value for thepluginsScanningVerboserecord componentbaseUrl- the value for thebaseUrlrecord componentioThreads- the value for theioThreadsrecord componentworkersSchedulerParallelism- the value for theworkersSchedulerParallelismrecord componentworkersSchedulerMaxPoolSize- the value for theworkersSchedulerMaxPoolSizerecord componentbuffersPooling- the value for thebuffersPoolingrecord componentbufferSize- the value for thebufferSizerecord componentdirectBuffers- the value for thedirectBuffersrecord componentforceGzipEncoding- the value for theforceGzipEncodingrecord componentallowUnescapedCharsInUrl- the value for theallowUnescapedCharsInUrlrecord component
-
-
Method Details
-
build
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
pluginsDirectory
Returns the value of thepluginsDirectoryrecord component.- Returns:
- the value of the
pluginsDirectoryrecord component
-
pluginsPackages
Returns the value of thepluginsPackagesrecord component.- Returns:
- the value of the
pluginsPackagesrecord component
-
pluginsScanningVerbose
public boolean pluginsScanningVerbose()Returns the value of thepluginsScanningVerboserecord component.- Returns:
- the value of the
pluginsScanningVerboserecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
ioThreads
public int ioThreads()Returns the value of theioThreadsrecord component.- Returns:
- the value of the
ioThreadsrecord component
-
workersSchedulerParallelism
public int workersSchedulerParallelism()Returns the value of theworkersSchedulerParallelismrecord component.- Returns:
- the value of the
workersSchedulerParallelismrecord component
-
workersSchedulerMaxPoolSize
public int workersSchedulerMaxPoolSize()Returns the value of theworkersSchedulerMaxPoolSizerecord component.- Returns:
- the value of the
workersSchedulerMaxPoolSizerecord component
-
buffersPooling
public boolean buffersPooling()Returns the value of thebuffersPoolingrecord component.- Returns:
- the value of the
buffersPoolingrecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
directBuffers
public boolean directBuffers()Returns the value of thedirectBuffersrecord component.- Returns:
- the value of the
directBuffersrecord component
-
forceGzipEncoding
public boolean forceGzipEncoding()Returns the value of theforceGzipEncodingrecord component.- Returns:
- the value of the
forceGzipEncodingrecord component
-
allowUnescapedCharsInUrl
public boolean allowUnescapedCharsInUrl()Returns the value of theallowUnescapedCharsInUrlrecord component.- Returns:
- the value of the
allowUnescapedCharsInUrlrecord component
-