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 Details

  • Constructor Details

    • CoreModule

      public CoreModule(Map<String,Object> conf, boolean silent)
    • 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 a CoreModule record class.
      Parameters:
      name - the value for the name record component
      pluginsDirectory - the value for the pluginsDirectory record component
      pluginsPackages - the value for the pluginsPackages record component
      pluginsScanningVerbose - the value for the pluginsScanningVerbose record component
      baseUrl - the value for the baseUrl record component
      ioThreads - the value for the ioThreads record component
      workersSchedulerParallelism - the value for the workersSchedulerParallelism record component
      workersSchedulerMaxPoolSize - the value for the workersSchedulerMaxPoolSize record component
      buffersPooling - the value for the buffersPooling record component
      bufferSize - the value for the bufferSize record component
      directBuffers - the value for the directBuffers record component
      forceGzipEncoding - the value for the forceGzipEncoding record component
      allowUnescapedCharsInUrl - the value for the allowUnescapedCharsInUrl record component
  • Method Details

    • build

      public static CoreModule build(Map<String,Object> conf, boolean silent)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • pluginsDirectory

      public String pluginsDirectory()
      Returns the value of the pluginsDirectory record component.
      Returns:
      the value of the pluginsDirectory record component
    • pluginsPackages

      public List<String> pluginsPackages()
      Returns the value of the pluginsPackages record component.
      Returns:
      the value of the pluginsPackages record component
    • pluginsScanningVerbose

      public boolean pluginsScanningVerbose()
      Returns the value of the pluginsScanningVerbose record component.
      Returns:
      the value of the pluginsScanningVerbose record component
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • ioThreads

      public int ioThreads()
      Returns the value of the ioThreads record component.
      Returns:
      the value of the ioThreads record component
    • workersSchedulerParallelism

      public int workersSchedulerParallelism()
      Returns the value of the workersSchedulerParallelism record component.
      Returns:
      the value of the workersSchedulerParallelism record component
    • workersSchedulerMaxPoolSize

      public int workersSchedulerMaxPoolSize()
      Returns the value of the workersSchedulerMaxPoolSize record component.
      Returns:
      the value of the workersSchedulerMaxPoolSize record component
    • buffersPooling

      public boolean buffersPooling()
      Returns the value of the buffersPooling record component.
      Returns:
      the value of the buffersPooling record component
    • bufferSize

      public int bufferSize()
      Returns the value of the bufferSize record component.
      Returns:
      the value of the bufferSize record component
    • directBuffers

      public boolean directBuffers()
      Returns the value of the directBuffers record component.
      Returns:
      the value of the directBuffers record component
    • forceGzipEncoding

      public boolean forceGzipEncoding()
      Returns the value of the forceGzipEncoding record component.
      Returns:
      the value of the forceGzipEncoding record component
    • allowUnescapedCharsInUrl

      public boolean allowUnescapedCharsInUrl()
      Returns the value of the allowUnescapedCharsInUrl record component.
      Returns:
      the value of the allowUnescapedCharsInUrl record component