|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DispatchObject
Implemented by dispatch objects that can be configured with a target queue that it uses for executing the object's asynchronous tasks.
Method Summary | |
---|---|
DispatchQueue |
getTargetQueue()
Gets the target queue for this object. |
void |
setTargetQueue(DispatchQueue queue)
Sets the target queue for this object. |
Methods inherited from interface org.fusesource.hawtdispatch.Suspendable |
---|
isSuspended, resume, suspend |
Method Detail |
---|
void setTargetQueue(DispatchQueue queue)
Sets 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.
queue
- 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.DispatchQueue getTargetQueue()
Gets the target queue for this object.
setTargetQueue(DispatchQueue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |