Class ReadWriteTask
java.lang.Object
fr.gouv.vitam.storage.offers.tape.worker.tasks.ReadWriteTask
- All Implemented Interfaces:
Future<ReadWriteResult>
-
Constructor Summary
ConstructorsConstructorDescriptionReadWriteTask(ReadWriteOrder order, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, AccessRequestManager accessRequestManager, String inputTarPath, boolean forceOverrideNonEmptyCartridges, ArchiveCacheStorage archiveCacheStorage) -
Method Summary
-
Constructor Details
-
ReadWriteTask
public ReadWriteTask(ReadWriteOrder order, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, AccessRequestManager accessRequestManager, String inputTarPath, boolean forceOverrideNonEmptyCartridges, ArchiveCacheStorage archiveCacheStorage)
-
-
Method Details
-
get
- Specified by:
getin interfaceFuture<ReadWriteResult>- Throws:
InterruptedExceptionExecutionException
-
get
public ReadWriteResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<ReadWriteResult>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<ReadWriteResult>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<ReadWriteResult>
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceFuture<ReadWriteResult>
-