public class GetResourcesInvoker extends Object implements EventCompleteNotifier, Future<ResourcesResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetResourcesInvoker.ResourcesListener
资源回调监听
|
| Constructor and Description |
|---|
GetResourcesInvoker(ServiceEventKeysProvider paramProvider,
Extensions extensions,
boolean internalRequest,
boolean useCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
complete(ServiceEventKey svcEventKey) |
void |
completeExceptionally(ServiceEventKey svcEventKey,
Throwable throwable) |
ResourcesResponse |
get() |
ResourcesResponse |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public GetResourcesInvoker(ServiceEventKeysProvider paramProvider, Extensions extensions, boolean internalRequest, boolean useCache) throws PolarisException
PolarisExceptionpublic void complete(ServiceEventKey svcEventKey)
complete in interface EventCompleteNotifierpublic void completeExceptionally(ServiceEventKey svcEventKey, Throwable throwable)
completeExceptionally in interface EventCompleteNotifierpublic boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<ResourcesResponse>public boolean isCancelled()
isCancelled in interface Future<ResourcesResponse>public boolean isDone()
isDone in interface Future<ResourcesResponse>public ResourcesResponse get() throws InterruptedException, ExecutionException
get in interface Future<ResourcesResponse>InterruptedExceptionExecutionExceptionpublic ResourcesResponse get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<ResourcesResponse>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2023. All rights reserved.