Java 类io.netty.util.concurrent.ImmediateExecutor 实例源码

项目:Pinot    文件:ResponseFutureTest.java   
public FutureListener(ResponseFuture f) {
  _future = f;
  LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>();
  queue.add(this);
  //_executor = new ThreadPoolExecutor(1, 1, 1, TimeUnit.HOURS, queue);
  _executor = ImmediateExecutor.INSTANCE;
  f.addListener(this, _executor);
}
项目:pinot    文件:ResponseFutureTest.java   
public FutureListener(ResponseFuture f) {
  _future = f;
  LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>();
  queue.add(this);
  //_executor = new ThreadPoolExecutor(1, 1, 1, TimeUnit.HOURS, queue);
  _executor = ImmediateExecutor.INSTANCE;
  f.addListener(this, _executor);
}
项目:divconq    文件:SslHandler.java   
public SslHandler(SSLEngine engine, boolean startTls) {
    this(engine, startTls, ImmediateExecutor.INSTANCE);
}
项目:netty4.0.27Learn    文件:SslHandler.java   
/**
 * Creates a new instance.
 *
 * @param engine    the {@link SSLEngine} this handler will use
 * @param startTls  {@code true} if the first write request shouldn't be
 *                  encrypted by the {@link SSLEngine}
 */
@SuppressWarnings("deprecation")
public SslHandler(SSLEngine engine, boolean startTls) {
    this(engine, startTls, ImmediateExecutor.INSTANCE);
}
项目:netty4study    文件:SslHandler.java   
/**
 * Creates a new instance.
 *
 * @param engine  the {@link SSLEngine} this handler will use
 */
public SslHandler(SSLEngine engine) {
    this(engine, ImmediateExecutor.INSTANCE);
}
项目:netty4study    文件:SslHandler.java   
/**
 * Creates a new instance.
 *
 * @param engine    the {@link SSLEngine} this handler will use
 * @param startTls  {@code true} if the first write request shouldn't be
 *                  encrypted by the {@link SSLEngine}
 */
public SslHandler(SSLEngine engine, boolean startTls) {
    this(engine, startTls, ImmediateExecutor.INSTANCE);
}
项目:netty-netty-5.0.0.Alpha1    文件:SslHandler.java   
/**
 * Creates a new instance.
 *
 * @param engine  the {@link SSLEngine} this handler will use
 */
public SslHandler(SSLEngine engine) {
    this(engine, ImmediateExecutor.INSTANCE);
}
项目:netty-netty-5.0.0.Alpha1    文件:SslHandler.java   
/**
 * Creates a new instance.
 *
 * @param engine    the {@link SSLEngine} this handler will use
 * @param startTls  {@code true} if the first write request shouldn't be
 *                  encrypted by the {@link SSLEngine}
 */
public SslHandler(SSLEngine engine, boolean startTls) {
    this(engine, startTls, ImmediateExecutor.INSTANCE);
}