io.leopard.timer
Class MinutePeriod

java.lang.Object
  extended by io.leopard.timer.MinutePeriod
All Implemented Interfaces:
Period

public class MinutePeriod
extends java.lang.Object
implements Period

周期(精确到分钟)

Author:
阿海

Constructor Summary
MinutePeriod(int minute)
          构造周期 .
 
Method Summary
 int getMinute()
           
protected  int getSeconds()
           
 boolean sleep()
          睡眠到周期到了 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinutePeriod

public MinutePeriod(int minute)
构造周期 .

Parameters:
minute - 分钟
Method Detail

getMinute

public int getMinute()

getSeconds

protected int getSeconds()

sleep

public boolean sleep()
              throws java.lang.InterruptedException
Description copied from interface: Period
睡眠到周期到了 .

Specified by:
sleep in interface Period
Returns:
是否还继续下一次.
Throws:
java.lang.InterruptedException


Copyright © 2014. All Rights Reserved.