org.springframework.retry.backoff
Interface SleepingBackOffPolicy<T extends SleepingBackOffPolicy<T>>

All Superinterfaces:
BackOffPolicy
All Known Implementing Classes:
ExponentialBackOffPolicy, ExponentialRandomBackOffPolicy, FixedBackOffPolicy

public interface SleepingBackOffPolicy<T extends SleepingBackOffPolicy<T>>
extends BackOffPolicy

A interface which can be mixed in by BackOffPolicys indicating that they sleep when backing off.


Method Summary
 T withSleeper(Sleeper sleeper)
          Clone the policy and return a new policy which uses the passed sleeper.
 
Methods inherited from interface org.springframework.retry.backoff.BackOffPolicy
backOff, start
 

Method Detail

withSleeper

T withSleeper(Sleeper sleeper)
Clone the policy and return a new policy which uses the passed sleeper.

Parameters:
sleeper - Target to be invoked any time the backoff policy sleeps
Returns:
a clone of this policy which will have all of its backoff sleeps routed into the passed sleeper


Copyright © 2013 SpringSource. All Rights Reserved.