org.springframework.batch.retry.backoff
Class DummySleeper
java.lang.Object
org.springframework.batch.retry.backoff.DummySleeper
- All Implemented Interfaces:
- Sleeper
public class DummySleeper
- extends Object
- implements Sleeper
Simple Sleeper
implementation that just waits on a local Object.
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummySleeper
public DummySleeper()
getLastBackOff
public long getLastBackOff()
- Public getter for the long.
- Returns:
- the lastBackOff
getBackOffs
public long[] getBackOffs()
sleep
public void sleep(long backOffPeriod)
throws InterruptedException
- Specified by:
sleep
in interface Sleeper
- Throws:
InterruptedException
Copyright © 2008 SpringSource. All Rights Reserved.