public class ReSTTask
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ASYNC_REST_CALLS
The maximum number of concurrent requests to be run at one time.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
get(long ms) |
static void |
resume() |
static void |
sleep() |
static ReSTTask |
submit(RestCall call,
long timeout) |
public static final int MAX_ASYNC_REST_CALLS
@CheckReturnValue @Nonnull public static ReSTTask submit(@Nonnull RestCall call, @Nonnegative long timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic static void resume()
public static void sleep()
@CheckReturnValue @Nonnull public Response get(@Nonnegative long ms) throws java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException, java.lang.InterruptedException
java.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionjava.lang.InterruptedExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.