org.glassfish.grizzly.Transport.isBlocking()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中org.glassfish.grizzly.Transport.isBlocking()方法的一些代码示例,展示了Transport.isBlocking()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transport.isBlocking()方法的具体详情如下:
包路径:org.glassfish.grizzly.Transport
类名称:Transport
方法名:isBlocking

Transport.isBlocking介绍

[英]Returns the Transport mode. true, if Transport is operating in blocking mode, or false otherwise. Specific Transport Connections may override this setting by Connection#isBlocking().
[中]返回传输模式。如果传输在阻塞模式下运行,则为true,否则为false。特定的传输连接可以通过连接#isBlocking()覆盖此设置。

代码示例

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public GrizzlyFuture<Connection> connect(SocketAddress remoteAddress, SocketAddress localAddress,
    CompletionHandler<Connection> completionHandler, boolean needFuture, boolean onlyAddCompletionHandlerToFuture) {
  if (!transport.isBlocking()) {
    return connectAsync(remoteAddress, localAddress, completionHandler, needFuture, onlyAddCompletionHandlerToFuture);
  } else {
    return connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

代码示例来源:origin: javaee/grizzly

@Override
public void connect(final SocketAddress remoteAddress,
    final SocketAddress localAddress,
    final CompletionHandler<Connection> completionHandler) {
  if (!transport.isBlocking()) {
    connectAsync(remoteAddress, localAddress, completionHandler, false);
  } else {
    connectSync(remoteAddress, localAddress, completionHandler);
  }
}

相关文章