Class Storage.Builder

All Implemented Interfaces:
WithJson<Storage.Builder>, ObjectBuilder<Storage>
Enclosing class:
Storage

public static class Storage.Builder extends WithJsonObjectBuilderBase<Storage.Builder> implements ObjectBuilder<Storage>
Builder for Storage.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      public final Storage.Builder type(StorageType value)
      Required - API name: type
    • allowMmap

      public final Storage.Builder allowMmap(@Nullable Boolean value)
      You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.

      API name: allow_mmap

    • self

      protected Storage.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Storage.Builder>
    • build

      public Storage build()
      Builds a Storage.
      Specified by:
      build in interface ObjectBuilder<Storage>
      Throws:
      NullPointerException - if some of the required fields are null.