Code example for TimeUnit

Methods: toMillis

0
 * 
 * @author Foxykeep 
 */ 
public abstract class MultiThreadedIntentService extends Service {
     
    private static final long STOP_SELF_DELAY = TimeUnit.SECONDS.toMillis(30L);
 
    private ExecutorService mThreadPool;
    private boolean mRedelivery;
 
    private ArrayList<Future<?>> mFutureList;
 
    private Handler mHandler;
     
    private final Runnable mStopSelfRunnable = new Runnable() {
        @Override 
        public void run() { 
            stopSelf(); 
        } 
    };