类 GetResourcesInvoker

java.lang.Object
com.tencent.polaris.client.flow.GetResourcesInvoker
所有已实现的接口:
EventCompleteNotifier, java.util.concurrent.Future<ResourcesResponse>

public class GetResourcesInvoker
extends java.lang.Object
implements EventCompleteNotifier, java.util.concurrent.Future<ResourcesResponse>
获取资源的回调
  • 构造器详细资料

  • 方法详细资料

    • complete

      public void complete​(ServiceEventKey svcEventKey)
      指定者:
      complete 在接口中 EventCompleteNotifier
    • completeExceptionally

      public void completeExceptionally​(ServiceEventKey svcEventKey, java.lang.Throwable throwable)
      指定者:
      completeExceptionally 在接口中 EventCompleteNotifier
    • cancel

      public boolean cancel​(boolean mayInterruptIfRunning)
      指定者:
      cancel 在接口中 java.util.concurrent.Future<ResourcesResponse>
    • isCancelled

      public boolean isCancelled()
      指定者:
      isCancelled 在接口中 java.util.concurrent.Future<ResourcesResponse>
    • isDone

      public boolean isDone()
      指定者:
      isDone 在接口中 java.util.concurrent.Future<ResourcesResponse>
    • get

      public ResourcesResponse get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
      指定者:
      get 在接口中 java.util.concurrent.Future<ResourcesResponse>
      抛出:
      java.lang.InterruptedException
      java.util.concurrent.ExecutionException
    • get

      public ResourcesResponse get​(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
      指定者:
      get 在接口中 java.util.concurrent.Future<ResourcesResponse>
      抛出:
      java.lang.InterruptedException
      java.util.concurrent.ExecutionException
      java.util.concurrent.TimeoutException