public class RetryWrap extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryWrap.Wrap |
static interface |
RetryWrap.WrapReturn<T> |
| Modifier and Type | Field and Description |
|---|---|
static int |
RETRY_COUNT |
static int |
RETRY_DELAY |
| Constructor and Description |
|---|
RetryWrap() |
| Modifier and Type | Method and Description |
|---|---|
static void |
check(HttpURLConnection c) |
static boolean |
retry(int r) |
static <T> T |
run(AtomicBoolean stop,
RetryWrap.WrapReturn<T> r) |
static void |
wrap(AtomicBoolean stop,
RetryWrap.Wrap r) |
static <T> T |
wrap(AtomicBoolean stop,
RetryWrap.WrapReturn<T> r) |
public static <T> T run(AtomicBoolean stop, RetryWrap.WrapReturn<T> r)
public static <T> T wrap(AtomicBoolean stop, RetryWrap.WrapReturn<T> r)
public static void wrap(AtomicBoolean stop, RetryWrap.Wrap r)
public static void check(HttpURLConnection c) throws IOException
IOExceptionpublic static boolean retry(int r)
Copyright © 2016. All rights reserved.