csbase.client.util

Class CountDown

    • Constructor Summary

      Constructors 
      Constructor and Description
      CountDown(long count, java.util.concurrent.TimeUnit unit, java.lang.Runnable task)
      Construtor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void restart()
      (Re)Inicia a contagem que precede a execução da tarefa.
      Ou seja, se há uma contagem em andamento, ele reinicía ela.
      void run() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountDown

        public CountDown(long count,
                 java.util.concurrent.TimeUnit unit,
                 java.lang.Runnable task)
        Construtor.
        Parameters:
        count - tempo a ser contado antes a execução da tarefa.
        unit - unidade do tempo a ser contado.
        task - tarefa a ser executada quando a contagem terminar.
    • Method Detail

      • restart

        public void restart()
        (Re)Inicia a contagem que precede a execução da tarefa.
        Ou seja, se há uma contagem em andamento, ele reinicía ela. Caso contrário, inicia uma nova que irá preceder a execução da tarefa.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable

Copyright © 2016. All Rights Reserved.