本文整理了Java中hudson.remoting.Channel.isOutClosed()
方法的一些代码示例,展示了Channel.isOutClosed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channel.isOutClosed()
方法的具体详情如下:
包路径:hudson.remoting.Channel
类名称:Channel
方法名:isOutClosed
[英]Is the sender side of the transport already closed?
[中]传输的发送方端是否已关闭?
代码示例来源:origin: jenkinsci/remoting
if (isOutClosed())
throw new IllegalStateException("Channel was already closed", outClosed);
if (isInClosed()) {
throw new IllegalStateException("Channel was already closed", inClosed);
} else if (isOutClosed()) {
throw new IllegalStateException("Channel was already closed", outClosed);
} else {
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
if (!channel.isOutClosed())
channel.send(new Cancel(id)); // only send a cancel if we can, or else ChannelClosedException will mask the original cause
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
if (!channel.isOutClosed())
channel.send(new Cancel(id)); // only send a cancel if we can, or else ChannelClosedException will mask the original cause
代码示例来源:origin: hudson/hudson-2.x
if (!channel.isOutClosed())
channel.send(new Cancel(id)); // only send a cancel if we can, or else ChannelClosedException will mask the original cause
代码示例来源:origin: jenkinsci/remoting
System.out.println("Running the tests");
assertTrue("Channel should be closing", channel.isClosingOrClosed());
assertFalse("Channel should not be closed due to the lock", channel.isOutClosed());
代码示例来源:origin: jenkinsci/remoting
if (!channel.isOutClosed())
channel.send(new Cancel(id)); // only send a cancel if we can, or else ChannelClosedException will mask the original cause
内容来源于网络,如有侵权,请联系作者删除!