public abstract class AbstractDispatchObject extends BaseSuspendable implements DispatchObject
| Modifier and Type | Field and Description |
|---|---|
protected HawtDispatchQueue |
targetQueue |
startup, suspended| Constructor and Description |
|---|
AbstractDispatchObject() |
| Modifier and Type | Method and Description |
|---|---|
HawtDispatchQueue |
getTargetQueue()
Gets the target queue for this object.
|
void |
setTargetQueue(DispatchQueue next)
Sets the target queue for this object.
|
isSuspended, onResume, onStartup, onSuspend, resume, run, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSuspended, resume, suspendprotected volatile HawtDispatchQueue targetQueue
public void setTargetQueue(DispatchQueue next)
DispatchObjectSets the target queue for this object.
An object's target queue is responsible for processing the object.
A dispatch queue's priority is inherited by its target queue. Use the
Dispatch.getGlobalQueue() method to obtain suitable target queue
of the desired priority.
A dispatch source's target queue specifies where its event handler and cancellation handler runnables will be submitted.
setTargetQueue in interface DispatchObjectnext - The new target queue for the object. The queue is retained, and the
previous one, if any, is released.
The result of passing NULL in this parameter is undefined.public HawtDispatchQueue getTargetQueue()
DispatchObjectGets the target queue for this object.
getTargetQueue in interface DispatchObjectDispatchObject.setTargetQueue(DispatchQueue)