Code example for TimeUnit

Methods: toMillis

 * @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() {
        public void run() { 
Connect your IDE to all the code out there  Get Codota for Java