public class DefaultBackingStoreSupplier extends java.lang.Object implements ScatterGatherBackingStoreSupplier
ScatterGatherBackingStoreSupplier using a temporary folder.
For example:
final Path dir = Paths.get("target/custom-temp-dir");
Files.createDirectories(dir);
final ParallelScatterZipCreator zipCreator = new ParallelScatterZipCreator(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()),
new DefaultBackingStoreSupplier(dir));
| Constructor and Description |
|---|
DefaultBackingStoreSupplier(java.nio.file.Path dir)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ScatterGatherBackingStore |
get()
Constructs a ScatterGatherBackingStore.
|
public DefaultBackingStoreSupplier(java.nio.file.Path dir)
dir is null, then use the default temporary-file directory.dir - temporary folder, may be null, must exist if non-null.public ScatterGatherBackingStore get() throws java.io.IOException
ScatterGatherBackingStoreSupplierget in interface ScatterGatherBackingStoreSupplierjava.io.IOException - when something failsCopyright © 2010 - 2024 Adobe. All Rights Reserved