public class Tea extends Object
| 构造器和说明 |
|---|
Tea() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
allowRetry(Map<String,?> map,
int retryTimes,
long now) |
static TeaResponse |
doAction(TeaRequest request,
Map<String,Object> runtimeOptions) |
static int |
getBackoffTime(Object o,
int retryTimes) |
static boolean |
isRetryable(Exception e) |
static void |
sleep(int time) |
static InputStream |
toReadable(byte[] byteArray) |
static InputStream |
toReadable(String string) |
static String |
toUpperFirstChar(String name) |
public static TeaResponse doAction(TeaRequest request, Map<String,Object> runtimeOptions) throws Exception
Exceptionpublic static int getBackoffTime(Object o, int retryTimes)
public static void sleep(int time)
throws InterruptedException
public static boolean isRetryable(Exception e)
public static InputStream toReadable(String string) throws UnsupportedEncodingException
public static InputStream toReadable(byte[] byteArray)
Copyright © 2020. All rights reserved.