Top Methods
com.mchange.v2.async

public Interface AsynchronousRunner

extends ClosableResource
Known Direct Subinterfaces
com.mchange.v2.async.Queuable, com.mchange.v2.async.RunnableQueue, com.mchange.v2.async.ThreadPoolReportingAsynchronousRunner
Known Direct Implementers
com.mchange.v2.async.RoundRobinAsynchronousRunner, com.mchange.v2.async.ThreadPerTaskAsynchronousRunner
Imports
com.mchange.v1.util.ClosableResource

Method Summary

Modifier and TypeMethod and Description
public void
close(boolean
Should be regarded as a hint, not a guarantee. If true, pending, not-yet-performed tasks will be skipped, if possible. Currently executing tasks may or may not be interrupted. If false, all previously scheduled tasks will be completed prior to clean-up. The method returns immediately regardless.
skip_remaining_tasks
)

Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.

public void
close()

Redeclares com.mchange.v1.util.ClosableResource.close.

Clean-up resources held by this asynchronous runner as soon as possible.

public void

Method Detail

closeback to summary
public void close(boolean skip_remaining_tasks)

Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.

Parameters
skip_remaining_tasks:boolean

Should be regarded as a hint, not a guarantee. If true, pending, not-yet-performed tasks will be skipped, if possible. Currently executing tasks may or may not be interrupted. If false, all previously scheduled tasks will be completed prior to clean-up. The method returns immediately regardless.

closeback to summary
public void close()

Redeclares com.mchange.v1.util.ClosableResource.close.

Clean-up resources held by this asynchronous runner as soon as possible. Remaining tasks are skipped if possible, and any tasks executing when close() is called may or may not be interrupted. Equivalent to close( true ).

postRunnableback to summary
public void postRunnable(Runnable r)