List of usage examples for org.apache.commons.compress.archivers.zip ParallelScatterZipCreator ParallelScatterZipCreator
public ParallelScatterZipCreator(final ExecutorService executorService, final ScatterGatherBackingStoreSupplier backingStoreSupplier)
From source file:org.codehaus.plexus.archiver.zip.ConcurrentJarCreator.java
public ConcurrentJarCreator(int nThreads) throws IOException { ScatterGatherBackingStoreSupplier defaultSupplier = new DeferredSupplier(); directories = createDeferred(defaultSupplier); manifest = createDeferred(defaultSupplier); metaInfDir = createDeferred(defaultSupplier); parallelScatterZipCreator = new ParallelScatterZipCreator(Executors.newFixedThreadPool(nThreads), defaultSupplier);// ww w . ja v a 2s . c o m }