Package org.faceless.pdf2.viewer2
Interface PDFBackgroundTask
-
- All Known Implementing Classes:
BackgroundSignatureVerifier
,BackgroundTextExtractor
,ThumbnailPanel.ThumbnailSidePanel
public interface PDFBackgroundTask
This interface should be implemented by any features in the Viewer that run in a background thread. These features need to be paused when an exclusive lock on the whole PDF is required, such as when the PDF is saved. An example of one of these objects is the SidePanel returned fromThumbnailPanel
- Since:
- 2.11.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isPaused()
Return true if the task has been paused with thepause()
methodboolean
isRunning()
Returns true if the task is still runningvoid
pause()
Pause the task until theunpause()
method is called.void
unpause()
Unpause the task after a call topause()
-
-
-
Method Detail
-
isPaused
boolean isPaused()
Return true if the task has been paused with thepause()
method
-
pause
void pause() throws InterruptedException
Pause the task until theunpause()
method is called. This method waits until the task has actually paused.- Throws:
InterruptedException
-
unpause
void unpause()
Unpause the task after a call topause()
-
isRunning
boolean isRunning()
Returns true if the task is still running
-
-