Class ReadWriteTask
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.worker.tasks.ReadWriteTask
-
- All Implemented Interfaces:
java.util.concurrent.Future<ReadWriteResult>
public class ReadWriteTask extends java.lang.Object implements java.util.concurrent.Future<ReadWriteResult>
-
-
Constructor Summary
Constructors Constructor Description ReadWriteTask(ReadWriteOrder order, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, AccessRequestManager accessRequestManager, java.lang.String inputTarPath, boolean forceOverrideNonEmptyCartridges, ArchiveCacheStorage archiveCacheStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
ReadWriteResult
get()
ReadWriteResult
get(long timeout, java.util.concurrent.TimeUnit unit)
boolean
isCancelled()
boolean
isDone()
-
-
-
Constructor Detail
-
ReadWriteTask
public ReadWriteTask(ReadWriteOrder order, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, AccessRequestManager accessRequestManager, java.lang.String inputTarPath, boolean forceOverrideNonEmptyCartridges, ArchiveCacheStorage archiveCacheStorage)
-
-
Method Detail
-
get
public ReadWriteResult get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
- Specified by:
get
in interfacejava.util.concurrent.Future<ReadWriteResult>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
get
public ReadWriteResult get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
- Specified by:
get
in interfacejava.util.concurrent.Future<ReadWriteResult>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interfacejava.util.concurrent.Future<ReadWriteResult>
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfacejava.util.concurrent.Future<ReadWriteResult>
-
isDone
public boolean isDone()
- Specified by:
isDone
in interfacejava.util.concurrent.Future<ReadWriteResult>
-
-