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));
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private static final String | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | DefaultBackingStoreSupplier(final Path
temporary folder, may be null, must exist if non-null. dir)Constructs a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public ScatterGatherBackingStore | get()
Implements org. |
| dir | back to summary |
|---|---|
| private final Path dir | |
| PREFIX | back to summary |
|---|---|
| private static final String PREFIX | |
| storeNum | back to summary |
|---|---|
| private final AtomicInteger storeNum | |
| DefaultBackingStoreSupplier | back to summary |
|---|---|
| public DefaultBackingStoreSupplier(final Path dir) Constructs a new instance. If
| |
| get | back to summary |
|---|---|
| public ScatterGatherBackingStore get() throws IOException Implements org. Doc from org. Constructs a ScatterGatherBackingStore.
| |