rabbit.proxy
Interface TaskRunner

All Known Implementing Classes:
HttpProxy

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.
 

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.