Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.autonomy.utilities
Class Sleeper

    java.lang.Object
      |
      +--com.autonomy.utilities.Sleeper

public class Sleeper
extends java.lang.Object

Constructor Summary
`Sleeper(long lInterval)`

Method Summary
`long` | `getInterval()`
`long` | `getLastAmountSlept()`
`long` | `getLastInvocationTime()`
`void` | `setInterval(long nInterval)`
`boolean` | `sleep(long lSleepTime)`
`boolean` | `sleepIfNecessary()`
`void` | `start()`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Sleeper

    public Sleeper(long lInterval)

Method Detail

### start

    public void start()

### sleepIfNecessary

    public boolean sleepIfNecessary()

  Returns:
    true if some time was spent sleeping

### sleep

    public boolean sleep(long lSleepTime)

  Returns:
    true if sleep no InterruptedException was thrown during sleep

### getLastInvocationTime

    public long getLastInvocationTime()

### setInterval

    public void setInterval(long nInterval)

### getInterval

    public long getInterval()

### getLastAmountSlept

    public long getLastAmountSlept()

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD