本文整理了Java中java.nio.channels.SocketChannel.shutdownOutput()
方法的一些代码示例,展示了SocketChannel.shutdownOutput()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SocketChannel.shutdownOutput()
方法的具体详情如下:
包路径:java.nio.channels.SocketChannel
类名称:SocketChannel
方法名:shutdownOutput
暂无
代码示例来源:origin: netty/netty
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: redisson/redisson
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: wildfly/wildfly
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: jitsi/ice4j
/**
* {@inheritDoc}
*
* Forwards to {@link #delegate} and returns {@code this}.
*/
@Override
public SocketChannel shutdownOutput()
throws IOException
{
delegate.shutdownOutput();
return this;
}
代码示例来源:origin: zhong-j-yu/bayou
@Override public void shutdownOutput() throws Exception
{
socketChannel.shutdownOutput();
}
代码示例来源:origin: kg.apc/jmeter-plugins-common-io
@Override
public SocketChannel shutdownOutput() throws IOException {
return socketChannel.shutdownOutput();
}
代码示例来源:origin: worstcase/gumshoe
public SocketChannel shutdownOutput() throws IOException {
return wrap(delegate.shutdownOutput());
}
代码示例来源:origin: com.github.netcrusherorg/netcrusher-core
private void shutdownWrite() {
if (channel.isOpen()) {
try {
channel.shutdownOutput();
} catch (IOException e) {
LOGGER.error("Fail to shutdown output", e);
}
}
}
代码示例来源:origin: com.aliyun.openservices/ons-client
private void shutdownOutput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: com.datastax.oss/java-driver-core-shaded
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: apache/activemq-artemis
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: com.couchbase.client/core-io
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: org.apache.ratis/ratis-proto-shaded
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: apache/activemq-artemis
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
代码示例来源:origin: io.bitsensor/proto
@UnstableApi
@Override
protected final void doShutdownOutput() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownOutput();
} else {
javaChannel().socket().shutdownOutput();
}
}
内容来源于网络,如有侵权,请联系作者删除!