Groovy Documentation

org.hidetake.gradle.ssh.internal.connection
[Groovy] Class Retry

java.lang.Object
  org.hidetake.gradle.ssh.internal.connection.Retry

@Slf4j
class Retry

Method Summary
static java.lang.Object retry(int retryCount, int retryWaitSec, groovy.lang.Closure closure)

Execute the closure with retrying.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

retry

static java.lang.Object retry(int retryCount, int retryWaitSec, groovy.lang.Closure closure)
Execute the closure with retrying. This method catches only com.jcraft.jsch.JSchExceptions.
Parameters:
retryCount
retryWaitSec
closure


 

Groovy Documentation