public static final class GPUdbFileHandler.Options extends Object
GPUdbFileHandler class.
The two options available right now are:
1. threadPoolTerminationTimeout - in seconds
2. fullFileDispatcherThreadpoolSize - an integer| Constructor and Description |
|---|
Options()
Constructor with default values for the class members.
|
Options(GPUdbFileHandler.Options other)
A copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFileSizeToSplit()
Gets the value of the file split size--files smaller than this size
will be uploaded in batches up to this size, and files greater than
this size will be uploaded in parts up to this size.
|
int |
getFullFileDispatcherThreadpoolSize()
This value is used to configure the size of the thread pool used
internally to handle batches of full file uploads.
|
void |
setFileSizeToSplit(long fileSizeToSplit)
Sets the value of the file split size--files smaller than this size
will be uploaded in batches up to this size, and files greater than
this size will be uploaded in parts up to this size.
|
GPUdbFileHandler.Options |
setFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize)
This value is used to configure the size of the thread pool used
internally to handle batches of full file uploads.
|
public Options()
public Options(GPUdbFileHandler.Options other)
other - The GPUdbFileHandler.Options instance to copy from.public int getFullFileDispatcherThreadpoolSize()
setFullFileDispatcherThreadpoolSize(int)public GPUdbFileHandler.Options setFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize) throws GPUdbException
fullFileDispatcherThreadpoolSize - The number of threads that
should exist in the file dispatcher pool.GPUdbFileHandler.Options instance.GPUdbExceptiongetFullFileDispatcherThreadpoolSize()public long getFileSizeToSplit()
setFileSizeToSplit(long)public void setFileSizeToSplit(long fileSizeToSplit)
throws GPUdbException
fileSizeToSplit - The file split size in bytes.GPUdbExceptionCopyright © 2025. All rights reserved.