Skip navigation links
A B C E G O S 

A

async(Callable<T>, AsyncCallback<T>) - Method in class com.lzh.easythread.EasyThread
Launch async task, and the callback are used for receive the result of callable task.
AsyncCallback<T> - Interface in com.lzh.easythread
Async callback interface.

B

build() - Method in class com.lzh.easythread.EasyThread.Builder
Create a thread manager to used with some configurations.

C

Callback - Interface in com.lzh.easythread
A callback interface to notify user that the task's status.
com.lzh.easythread - package com.lzh.easythread
 
create(ExecutorService) - Static method in class com.lzh.easythread.EasyThread.Builder
 
createCacheable() - Static method in class com.lzh.easythread.EasyThread.Builder
Create thread pool by Executors.newCachedThreadPool()
createFixed(int) - Static method in class com.lzh.easythread.EasyThread.Builder
Create thread pool by Executors.newFixedThreadPool()
createScheduled(int) - Static method in class com.lzh.easythread.EasyThread.Builder
Create thread pool by Executors.newScheduledThreadPool()
createSingle() - Static method in class com.lzh.easythread.EasyThread.Builder
Create thread pool by Executors.newSingleThreadPool()

E

EasyThread - Class in com.lzh.easythread
 
EasyThread.Builder - Class in com.lzh.easythread
 
execute(Runnable) - Method in class com.lzh.easythread.EasyThread
Launch task

G

getExecutor() - Method in class com.lzh.easythread.EasyThread
get thread pool that be created.

O

onCompleted(String) - Method in interface com.lzh.easythread.Callback
notify user to know that it completed.
onError(String, Throwable) - Method in interface com.lzh.easythread.Callback
This method will be invoked when thread has been occurs an error.
onFailed(Throwable) - Method in interface com.lzh.easythread.AsyncCallback
 
onStart(String) - Method in interface com.lzh.easythread.Callback
notify user that task start running
onSuccess(T) - Method in interface com.lzh.easythread.AsyncCallback
 

S

setCallback(Callback) - Method in class com.lzh.easythread.EasyThread.Builder
Set default thread callback to used.
setCallback(Callback) - Method in class com.lzh.easythread.EasyThread
Set thread callback for current task, if not set, the default callback should be used.
setDelay(long, TimeUnit) - Method in class com.lzh.easythread.EasyThread
Set the delay time for current task.
setDeliver(Executor) - Method in class com.lzh.easythread.EasyThread.Builder
Set default thread deliver to used.
setDeliver(Executor) - Method in class com.lzh.easythread.EasyThread
Set the thread deliver for current task.
setName(String) - Method in class com.lzh.easythread.EasyThread.Builder
Set default thread name to used.
setName(String) - Method in class com.lzh.easythread.EasyThread
Set thread name for current task.
setPriority(int) - Method in class com.lzh.easythread.EasyThread.Builder
Set default thread priority to used.
submit(Callable<T>) - Method in class com.lzh.easythread.EasyThread
Launch task
A B C E G O S 
Skip navigation links