org.springframework.batch.retry.backoff
Class ObjectWaitSleeper

java.lang.Object
  extended by org.springframework.batch.retry.backoff.ObjectWaitSleeper
All Implemented Interfaces:
Sleeper

public class ObjectWaitSleeper
extends Object
implements Sleeper

Simple Sleeper implementation that just waits on a local Object.

Author:
Dave Syer

Constructor Summary
ObjectWaitSleeper()
           
 
Method Summary
 void sleep(long backOffPeriod)
          Pause for the specified period using whatever means available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWaitSleeper

public ObjectWaitSleeper()
Method Detail

sleep

public void sleep(long backOffPeriod)
           throws InterruptedException
Description copied from interface: Sleeper
Pause for the specified period using whatever means available.

Specified by:
sleep in interface Sleeper
Throws:
InterruptedException


Copyright © 2013 SpringSource. All Rights Reserved.