net.sf.sevenzipjbinding
Interface IOutFeatureSetMultithreading

All Known Subinterfaces:
IOutCreateArchive7z, IOutUpdateArchive7z
All Known Implementing Classes:
OutArchive7zImpl

public interface IOutFeatureSetMultithreading

Feature interface for the setting 'maximal number of threads' to use during compression or update operation. Use SevenZip.openOutArchive(ArchiveFormat) to get implementation of this interface.

Since:
9.20-2.00
Author:
Boris Brodski

Method Summary
 void setThreadCount(int threadCount)
          Set number of threads to use.
 

Method Detail

setThreadCount

void setThreadCount(int threadCount)
                    throws SevenZipException
Set number of threads to use.

Parameters:
threadCount - number of threads to use,
0 - match count of threads to the count of the available processors,
-1 - use default value
Throws:
SevenZipException - in error case. If this method ends with an exception, the current operation will be reported to 7-Zip as failed. There are no guarantee, that there are no further call back methods will get called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as ISevenZipInArchive.extract() or SevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. See SevenZipException and SevenZipException.printStackTraceExtended() for details.