|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.TimeGate
public class TimeGate
A TimeGate when entered will cause the gate to be closed for a specified period of time.
The GNU Lesser General Public License for details.| Field Summary | |
|---|---|
private int |
closeTime
The interval during which the gate is closed. |
private long |
then
The time in milliseconds that the gate last closed. |
| Constructor Summary | |
|---|---|
TimeGate(int count)
Build a TimeGate that will allow entry no more often than count milliseconds |
|
| Method Summary | |
|---|---|
boolean |
open()
Determine whether entry through the gate is allowed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int closeTime
private long then
| Constructor Detail |
|---|
public TimeGate(int count)
count - the length of time to keep the gate shut after opening it.| Method Detail |
|---|
public boolean open()
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||