org.diylc.common
Interface ITask<T>

Type Parameters:
T -

public interface ITask<T>

Abstract layer between the app and platform worker thread implementation.

Author:
Branislav Stojkovic

Method Summary
 void complete(T result)
          Called if background thread is executed correctly, the result is passed as a parameter.
 T doInBackground()
          Runs in background thread.
 void failed(java.lang.Exception e)
          Called if background thread fails.
 

Method Detail

doInBackground

T doInBackground()
                 throws java.lang.Exception
Runs in background thread.

Returns:
Throws:
java.lang.Exception

failed

void failed(java.lang.Exception e)
Called if background thread fails.

Parameters:
e -

complete

void complete(T result)
Called if background thread is executed correctly, the result is passed as a parameter.

Parameters:
result -