Class ReadTask
java.lang.Object
fr.gouv.vitam.storage.offers.tape.worker.tasks.ReadTask
- All Implemented Interfaces:
Future<ReadWriteResult>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionReadTask
(ReadOrder readOrder, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, AccessRequestManager accessRequestManager, ArchiveCacheStorage archiveCacheStorage) -
Method Summary
-
Field Details
-
TAPE_MSG
- See Also:
-
TEMP_EXT
- See Also:
-
done
-
-
Constructor Details
-
ReadTask
public ReadTask(ReadOrder readOrder, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, AccessRequestManager accessRequestManager, ArchiveCacheStorage archiveCacheStorage)
-
-
Method Details
-
get
- Specified by:
get
in interfaceFuture<ReadWriteResult>
-
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>
-