org.fusesource.hawtdispatch
Interface Suspendable

All Known Subinterfaces:
CustomDispatchSource<Event,MergedEvent>, DispatchObject, DispatchQueue, DispatchSource

public interface Suspendable

Implemented by dispatch objects which can suspend the execution of dispatch tasks.


Method Summary
 boolean isSuspended()
           
 void resume()
           Resumes the invocation of tasks on a dispatch object.
 void suspend()
           Suspends the invocation of tasks on a dispatch object.
 

Method Detail

suspend

void suspend()

Suspends the invocation of tasks on a dispatch object.

A suspended object will not invoke any tasks associated with it. The suspension of an object will occur after any running runnable associated with the object completes.

Calls to suspend() must be balanced with calls to resume().

See Also:
resume()

resume

void resume()

Resumes the invocation of tasks on a dispatch object.

See Also:
suspend()

isSuspended

boolean isSuspended()
Returns:
true if the the current object is suspended.
See Also:
resume(), suspend()


Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.