public static final class GPUdbFileHandler.Options extends Object
GPUdbFileHandler
class
The two options available right now are:
1. threadPoolTerminationTimeout - in seconds
2. fullFileDispatcherThreadpoolSize - an integerConstructor 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()
Split files greater than this size so that they are uploaded multi-part.
|
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)
Split files greater than this size so that they are uploaded multi-part.
|
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
- - GPUdbFileHandler.Options
instance to copy frompublic int getFullFileDispatcherThreadpoolSize()
setFullFileDispatcherThreadpoolSize(int)
public GPUdbFileHandler.Options setFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize) throws GPUdbException
fullFileDispatcherThreadpoolSize
- - an Integer value indicating
the size of the thread poolGPUdbException
getFullFileDispatcherThreadpoolSize()
public long getFileSizeToSplit()
setFileSizeToSplit(long)
public void setFileSizeToSplit(long fileSizeToSplit) throws GPUdbException
fileSizeToSplit
- - the file size in bytesGPUdbException
Copyright © 2024. All rights reserved.