|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.util.JobQueue.Job
public abstract static class JobQueue.Job
A job that may be added to the job queue.
Field Summary | |
---|---|
private boolean |
m_bMayBeSkippedIfDuplicate
|
private JobQueue |
m_queue
|
Constructor Summary | |
---|---|
JobQueue.Job()
Creates a new job for that mayBeSkippedIfDuplicate() returns false. |
|
JobQueue.Job(boolean a_bMayBeSkippedIfDuplicate)
Creates a new job. |
Method Summary | |
---|---|
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 |
mayBeSkippedIfDuplicate()
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean m_bMayBeSkippedIfDuplicate
private JobQueue m_queue
Constructor Detail |
---|
public JobQueue.Job(boolean a_bMayBeSkippedIfDuplicate)
a_bMayBeSkippedIfDuplicate
- if this thread is skipped if another thread with the same
value already is in the queuepublic JobQueue.Job()
Method Detail |
---|
public abstract void runJob()
public final void run()
run
in interface java.lang.Runnable
public java.lang.String getAddedJobLogMessage()
public final boolean mayBeSkippedIfDuplicate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |