public class FullFileDispatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FullFileDispatcher.FullFileDownloadTask
This class represents a task handling the upload of a bunch of full
file uploads.
|
static class |
FullFileDispatcher.FullFileUploadTask
This class represents a task handling the upload of a bunch of full
file uploads.
|
| Constructor and Description |
|---|
FullFileDispatcher(GPUdbFileHandler.Options fileHandlerOptions,
FileUploadListener callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Wait for the tasks submitted to the thread pool and collect the
results
Result using the futures accessed using the
jobExecutor object. |
void |
submit(FullFileDispatcher.FullFileUploadTask task)
Submit an instance of
FullFileDispatcher.FullFileUploadTask to the internal
threadpool. |
void |
terminate()
This method is called to terminate the threadpool once an instance of
the class
FullFileDispatcher has done its job. |
public FullFileDispatcher(GPUdbFileHandler.Options fileHandlerOptions, FileUploadListener callback)
public void submit(FullFileDispatcher.FullFileUploadTask task)
FullFileDispatcher.FullFileUploadTask to the internal
threadpool.task - a FullFileDispatcher.FullFileUploadTask objectpublic void collect()
throws GPUdbException
Result using the futures accessed using the
jobExecutor object.GPUdbExceptionpublic void terminate()
FullFileDispatcher has done its job.Copyright © 2025. All rights reserved.