-
public abstract class PayUAsyncTask<Params, Progress, Result>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumPayUAsyncTask.StatusIndicates the current status of the task. Each status will be set only onceduring the lifetime of a task.
-
Constructor Summary
Constructors Constructor Description PayUAsyncTask()Creates a new asynchronous task. PayUAsyncTask(Handler handler)Creates a new asynchronous task. PayUAsyncTask(Looper callbackLooper)
-
Method Summary
Modifier and Type Method Description final PayUAsyncTask<Params, Progress, Result>execute(Array<Params> params)final PayUAsyncTask<Params, Progress, Result>executeOnExecutor(Executor exec, Array<Params> params)final PayUAsyncTask.StatusgetStatus()Returns the current status of this task. final booleanisCancelled()final booleancancel(boolean mayInterruptIfRunning)final Resultget()Waits if necessary for the computation to complete, and thenretrieves its result. final Resultget(long timeout, TimeUnit unit)Waits if necessary for at most the given time for the computationto complete, and then retrieves its result. -
-
Method Detail
-
execute
@MainThread() final PayUAsyncTask<Params, Progress, Result> execute(Array<Params> params)
-
executeOnExecutor
@MainThread() final PayUAsyncTask<Params, Progress, Result> executeOnExecutor(Executor exec, Array<Params> params)
-
getStatus
final PayUAsyncTask.Status getStatus()
Returns the current status of this task.
-
isCancelled
final boolean isCancelled()
-
cancel
final boolean cancel(boolean mayInterruptIfRunning)
-
get
final Result get()
Waits if necessary for the computation to complete, and thenretrieves its result.
-
-
-
-