org.apache.curator
Interface RetrySleeper


public interface RetrySleeper

Abstraction for retry policies to sleep


Method Summary
 void sleepFor(long time, TimeUnit unit)
          Sleep for the given time
 

Method Detail

sleepFor

void sleepFor(long time,
              TimeUnit unit)
              throws InterruptedException
Sleep for the given time

Parameters:
time - time
unit - time unit
Throws:
InterruptedException - if the sleep is interrupted


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.