public abstract static class JobQueue.Job
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private boolean |
m_bMayBeSkippedIfDuplicate |
private JobQueue |
m_queue |
Constructor and Description |
---|
Job()
Creates a new job for that mayBeSkippedIfDuplicate() returns false.
|
Job(boolean a_bMayBeSkippedIfDuplicate)
Creates a new job.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddedJobLogMessage()
Optional message for a log entry that is generated if a new job was added and this value is not
null.
|
boolean |
isInterrupting() |
boolean |
isSkippedIfDuplicate()
If a new thread is added to the queue and mayBeSkippedIfDuplicate() returns true, it is skipped if
another thread with the same value already is in the queue.
|
void |
run() |
abstract void |
runJob()
Replaces the run method as the normal run method is implemented by Job itself.
|
private boolean m_bMayBeSkippedIfDuplicate
private JobQueue m_queue
public Job(boolean a_bMayBeSkippedIfDuplicate)
a_bMayBeSkippedIfDuplicate
- if this thread is skipped if another thread with the same
value already is in the queuepublic Job()
public abstract void runJob()
public final void run()
run
in interface java.lang.Runnable
public java.lang.String getAddedJobLogMessage()
public boolean isInterrupting()
public final boolean isSkippedIfDuplicate()
Copyright © 2023. All rights reserved.