Class ReadWriteTask
java.lang.Object
fr.gouv.vitam.storage.offers.tape.worker.tasks.ReadWriteTask
- All Implemented Interfaces:
Future<ReadWriteResult>
-
Constructor Summary
ConstructorDescriptionReadWriteTask
(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:
get
in interfaceFuture<ReadWriteResult>
- Throws:
InterruptedException
ExecutionException
-
get
public ReadWriteResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<ReadWriteResult>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancel
in interfaceFuture<ReadWriteResult>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<ReadWriteResult>
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceFuture<ReadWriteResult>
-