Class TempStore
java.lang.Object
io.quarkiverse.cxf.vertx.http.client.TempStore
A disk store for temporary files.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.core.Future<TempStore.InitializedTempStore>fromContext(io.vertx.core.Context ctx, Optional<String> tempDir, long fileDelayMs, boolean gcOnShutDown) static io.vertx.core.Future<TempStore.InitializedTempStore>fromContext(io.vertx.core.Context ctx, Optional<String> tempDir, long gcDelayMs, long fileDelayMs, boolean gcOnShutDown) static longvalidateDelayMs(long delayMs, String label)
-
Field Details
-
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- theContextto bind the returnedTempStore.InitializedTempStoretotempDir- the temporary directory where to create temporary filesfileDelayMs- number of milliseconds since the creation of the given file after which the file can be deletedgcOnShutDown- iftruethe temporary files will be removed onTempStore.InitializedTempStore.close(Promise)- Returns:
- a
Futureholding anTempStore.InitializedTempStore- either a new one or one retrieved from the givenContext
-
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- theContextto bind the returnedTempStore.InitializedTempStoretotempDir- the temporary directory where to create temporary filesgcDelayMs- delay in milliseconds for periodic cleaning of the temporary filesfileDelayMs- number of milliseconds since the creation of the given file after which the file can be deletedgcOnShutDown- iftruethe temporary files will be removed onTempStore.InitializedTempStore.close(Promise)- Returns:
- a
Futureholding anTempStore.InitializedTempStore- either a new one or one retrieved from the givenContext
-
validateDelayMs
-