rabbit.httpio
Interface TaskRunner

All Known Implementing Classes:
SelectorRunner

public interface TaskRunner

A handler that can run task in off-main threads.

Author:
Robert Olofsson

Method Summary
 void runMainTask(Runnable r)
          Run a task on the main thread.
 void runThreadTask(Runnable r)
          Run a task in another thread.
 void shutdown()
          Shut down this task runner.
 

Method Detail

runThreadTask

void runThreadTask(Runnable r)
Run a task in another thread. The task will be run sometime in the future.

Parameters:
r - the task to run.

runMainTask

void runMainTask(Runnable r)
Run a task on the main thread. The task will be run sometime in the future.

Parameters:
r - the task to run on the main thread.

shutdown

void shutdown()
Shut down this task runner.