Package com.suse.coco.attestation
Class AbstractProcessorThread
- java.lang.Object
-
- com.suse.coco.attestation.AbstractProcessorThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ListeningThread,ProcessingThread
abstract class AbstractProcessorThread extends java.lang.Object implements java.lang.RunnableBase class for the threads used by theAttestationQueueProcessor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractProcessorThread(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawait()Wait for this thread to complete its processing.booleanisRunning()Check if this thread is currently running.protected voidsetRunning(boolean runningIn)Specify that this thread has already stopped it's processing and should not be considered as running.voidstart()Starts the processing of the thread.voidstop()Stops the processing of the thread, if it is running.
-
-
-
Method Detail
-
start
public void start()
Starts the processing of the thread.
-
stop
public void stop()
Stops the processing of the thread, if it is running.
-
await
public void await() throws java.lang.InterruptedExceptionWait for this thread to complete its processing.- Throws:
java.lang.InterruptedException- when the wait is interrupted
-
isRunning
public boolean isRunning()
Check if this thread is currently running.- Returns:
- true if the thread is running.
-
setRunning
protected void setRunning(boolean runningIn)
Specify that this thread has already stopped it's processing and should not be considered as running.- Parameters:
runningIn- the new status
-
-