Java Timer Usage getSlowTimer()

Here you can find the source of getSlowTimer()

Description

get Slow Timer

License

Apache License

Declaration

public static Timer getSlowTimer() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Timer;

public class Main {
    private static Timer timerslow = null;
    private static Object TIMER_LOCK = new Object();

    public static Timer getSlowTimer() {
        synchronized (TIMER_LOCK) {
            if (timerslow == null) {
                timerslow = new Timer();
            }//from   ww  w .j a  v a2s  . c  o m

            return timerslow;
        }
    }
}

Related

  1. countWorkerPoolTimerThreads()
  2. delayedExit(final int status, final long delay)
  3. exitSystemAfterTimeout(final long delay)
  4. getMinIdleTimer()
  5. getQuickSearchTimer()
  6. getTimer(String id)
  7. mayNewTasksBeScheduled(Timer timer)
  8. printLoadToConsole(int milliOffset)
  9. runRotateKeys()