Interface IOutFeatureSetMultithreading

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

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.

Boris Brodski

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

Method Detail


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

threadCount - number of threads to use,
0 - match count of threads to the count of the available processors,
-1 - use default value
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.