Class TempStore

java.lang.Object
io.quarkiverse.cxf.vertx.http.client.TempStore

public class TempStore extends Object
A disk store for temporary files.
  • Field Details

    • CONTEXT_KEY

      public static final String CONTEXT_KEY
  • Method Details

    • fromContext

      public static io.vertx.core.Future<TempStore.InitializedTempStore> fromContext(io.vertx.core.Context ctx, Optional<String> tempDir, long fileDelayMs, boolean gcOnShutDown)
      Parameters:
      ctx - the Context to bind the returned TempStore.InitializedTempStore to
      tempDir - the temporary directory where to create temporary files
      fileDelayMs - number of milliseconds since the creation of the given file after which the file can be deleted
      gcOnShutDown - if true the temporary files will be removed on TempStore.InitializedTempStore.close(Promise)
      Returns:
      a Future holding an TempStore.InitializedTempStore - either a new one or one retrieved from the given Context
    • fromContext

      public static io.vertx.core.Future<TempStore.InitializedTempStore> fromContext(io.vertx.core.Context ctx, Optional<String> tempDir, long gcDelayMs, long fileDelayMs, boolean gcOnShutDown)
      Parameters:
      ctx - the Context to bind the returned TempStore.InitializedTempStore to
      tempDir - the temporary directory where to create temporary files
      gcDelayMs - delay in milliseconds for periodic cleaning of the temporary files
      fileDelayMs - number of milliseconds since the creation of the given file after which the file can be deleted
      gcOnShutDown - if true the temporary files will be removed on TempStore.InitializedTempStore.close(Promise)
      Returns:
      a Future holding an TempStore.InitializedTempStore - either a new one or one retrieved from the given Context
    • validateDelayMs

      public static long validateDelayMs(long delayMs, String label)