⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 futureresult.java

📁 用java实现的一个socket服务器。采用非阻塞模式
💻 JAVA
字号:
package com.huawei.comm.smap;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

import java.lang.reflect.InvocationTargetException;

public class FutureResult
{

  // Fields
  protected Object value_;
  protected boolean ready_;
  protected InvocationTargetException exception_;

  // Constructors
  public FutureResult()
  {}

  // Methods

  protected Object doGet()
      throws InvocationTargetException
  {
    return null;
  }

  public synchronized Object get()
      throws InterruptedException, InvocationTargetException
  {
    return null;
  }

  public synchronized Object timedGet(long msecs)
      throws InterruptedException, InvocationTargetException
  {
    return null;
  }

  public synchronized void set(Object newValue)
  {}

  public synchronized void setException(Throwable ex)
  {}

  public synchronized InvocationTargetException getException()
  {
    return null;
  }

  public synchronized boolean isReady()
  {
    return false;
  }

  public synchronized Object peek()
  {
    return null;
  }

  public synchronized void clear()
  {}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -