Class TemporaryStorageConfig.BuilderBase.TemporaryStorageConfigImpl

java.lang.Object
io.helidon.webserver.staticcontent.TemporaryStorageConfig.BuilderBase.TemporaryStorageConfigImpl
All Implemented Interfaces:
Prototype.Api, Prototype.Factory<TemporaryStorage>, TemporaryStorageConfig, Supplier<TemporaryStorage>
Enclosing class:
TemporaryStorageConfig.BuilderBase<BUILDER extends TemporaryStorageConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends TemporaryStorageConfig>

protected static class TemporaryStorageConfig.BuilderBase.TemporaryStorageConfigImpl extends Object implements TemporaryStorageConfig, Supplier<TemporaryStorage>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

  • Constructor Details

    • TemporaryStorageConfigImpl

      protected TemporaryStorageConfigImpl(TemporaryStorageConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • build

      public TemporaryStorage build()
      Description copied from interface: Prototype.Factory
      Create a new instance of the runtime type from this config object.
      Specified by:
      build in interface Prototype.Factory<TemporaryStorage>
      Returns:
      new configured runtime instance
    • get

      public TemporaryStorage get()
      Specified by:
      get in interface Supplier<TemporaryStorage>
    • enabled

      public boolean enabled()
      Description copied from interface: TemporaryStorageConfig
      Whether the temporary storage is enabled, defaults to true. If disabled, nothing is stored in temporary directory (may have performance impact, as for example a file may be extracted from a zip file on each request).
      Specified by:
      enabled in interface TemporaryStorageConfig
      Returns:
      whether the temporary storage is enabled
    • directory

      public Optional<Path> directory()
      Description copied from interface: TemporaryStorageConfig
      Location of the temporary storage, defaults to temporary storage configured for the JVM.
      Specified by:
      directory in interface TemporaryStorageConfig
      Returns:
      directory of temporary storage
    • filePrefix

      public String filePrefix()
      Description copied from interface: TemporaryStorageConfig
      Prefix of the files in temporary storage.
      Specified by:
      filePrefix in interface TemporaryStorageConfig
      Returns:
      file prefix
    • fileSuffix

      public String fileSuffix()
      Description copied from interface: TemporaryStorageConfig
      Suffix of the files in temporary storage.
      Specified by:
      fileSuffix in interface TemporaryStorageConfig
      Returns:
      file suffix
    • deleteOnExit

      public boolean deleteOnExit()
      Description copied from interface: TemporaryStorageConfig
      Whether temporary files should also be deleted on JVM exit; cache retirement and service shutdown delete extracted files independently of this setting, after active requests release them. This is enabled by default. Disabling it only disables the JVM-exit cleanup and does not retain extracted files for debugging after cache replacement, eviction, or service shutdown.
      Specified by:
      deleteOnExit in interface TemporaryStorageConfig
      Returns:
      whether to delete temporary files on JVM exit
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object