org.springframework.batch.retry.backoff
Class DummySleeper

java.lang.Object
  extended by 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

Constructor Summary
DummySleeper()
           
 
Method Summary
 long[] getBackOffs()
           
 long getLastBackOff()
          Public getter for the long.
 void sleep(long backOffPeriod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummySleeper

public DummySleeper()
Method Detail

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.