org.redkale.net.sncp

## 类 SncpClient.SncpFuture<T>

- java.lang.Object
- - org.redkale.net.sncp.SncpClient.SncpFuture<T>

- 所有已实现的接口:
    java.util.concurrent.Future<T>
  封闭类:
    SncpClient

      protected static final class SncpClient.SncpFuture<T>
      extends java.lang.Object
      implements java.util.concurrent.Future<T>

- - ### 构造器概要

    构造器
    构造器和说明
    `SncpFuture(boolean rest)`
    `SncpFuture(boolean rest, T result)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `cancel(boolean mayInterruptIfRunning)`
    `T` | `get()`
    `T` | `get(long timeout, java.util.concurrent.TimeUnit unit)`
    `boolean` | `isCancelled()`
    `boolean` | `isDone()`
    `boolean` | `isRest()`
    `void` | `set(java.lang.RuntimeException ex)`
    `void` | `set(T result)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SncpFuture

          public SncpFuture(boolean rest)

    - #### SncpFuture

          public SncpFuture(boolean rest,
                            T result)

  - ### 方法详细资料

    - #### isRest

          public boolean isRest()

    - #### set

          public void set(T result)

    - #### set

          public void set(java.lang.RuntimeException ex)

    - #### cancel

          public boolean cancel(boolean mayInterruptIfRunning)

      指定者:
        `cancel` 在接口中 `java.util.concurrent.Future<T>`

    - #### isCancelled

          public boolean isCancelled()

      指定者:
        `isCancelled` 在接口中 `java.util.concurrent.Future<T>`

    - #### isDone

          public boolean isDone()

      指定者:
        `isDone` 在接口中 `java.util.concurrent.Future<T>`

    - #### get

          public T get()
                throws java.lang.InterruptedException,
                       java.util.concurrent.ExecutionException

      指定者:
        `get` 在接口中 `java.util.concurrent.Future<T>`
      抛出:
        `java.lang.InterruptedException`
        `java.util.concurrent.ExecutionException`

    - #### get

          public T 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<T>`
      抛出:
        `java.lang.InterruptedException`
        `java.util.concurrent.ExecutionException`
        `java.util.concurrent.TimeoutException`