Interface TemporaryStorage
- All Superinterfaces:
RuntimeType.Api<TemporaryStorageConfig>
Handling of temporary files.
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new builder.static TemporaryStorage
create()
Create a new instance with defaults.static TemporaryStorage
create
(TemporaryStorageConfig config) Create a new instance from its configuration.static TemporaryStorage
create
(Consumer<TemporaryStorageConfig.Builder> consumer) Create a new instance customizing its configuration.Create a temporary file.Methods inherited from interface io.helidon.builder.api.RuntimeType.Api
prototype
-
Method Details
-
builder
Create a new builder.- Returns:
- a new fluent API builder
-
create
Create a new instance from its configuration.- Parameters:
config
- configuration of temporary storage- Returns:
- a new configured instance
-
create
Create a new instance customizing its configuration.- Parameters:
consumer
- consumer of configuration of temporary storage- Returns:
- a new configured instance
-
create
Create a new instance with defaults.- Returns:
- a new temporary storage (enabled)
-
createFile
Create a temporary file.- Returns:
- a new temporary file, if enabled and successful
-