类java.nio.channels.NotYetBoundException源码实例Demo

下面列出了怎么用java.nio.channels.NotYetBoundException的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: dragonwell8_jdk   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码2 项目: TencentKona-8   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码3 项目: jdk8u60   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码4 项目: openjdk-jdk8u   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码6 项目: Bytecoder   文件: ServerSocketChannelImpl.java
/**
 * Marks the beginning of an I/O operation that might block.
 *
 * @throws ClosedChannelException if the channel is closed
 * @throws NotYetBoundException if the channel's socket has not been bound yet
 */
private void begin(boolean blocking) throws ClosedChannelException {
    if (blocking)
        begin();  // set blocker to close channel if interrupted
    synchronized (stateLock) {
        ensureOpen();
        if (localAddress == null)
            throw new NotYetBoundException();
        if (blocking)
            thread = NativeThread.current();
    }
}
 
源代码7 项目: openjdk-jdk9   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码8 项目: jdk8u-jdk   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码9 项目: hottub   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码10 项目: openjdk-8-source   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码11 项目: openjdk-8   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码12 项目: jdk8u_jdk   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码13 项目: jdk8u-jdk   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码14 项目: jdk8u-dev-jdk   文件: SctpMultiChannelImpl.java
@Override
public Set<Association> associations()
        throws ClosedChannelException, NotYetBoundException {
    synchronized (stateLock) {
        if (!isOpen())
            throw new ClosedChannelException();
        if (!isBound())
            throw new NotYetBoundException();

        return Collections.unmodifiableSet(associationMap.keySet());
    }
}
 
源代码15 项目: j2objc   文件: ServerSocketChannelTest.java
public void testAccept_Block_NotYetBound() throws IOException {
    assertTrue(this.serverChannel.isOpen());
    assertTrue(this.serverChannel.isBlocking());
    try {
        this.serverChannel.accept();
        fail("Should throw NotYetBoundException");
    } catch (NotYetBoundException e) {
        // correct
    }
}
 
源代码16 项目: j2objc   文件: ServerSocketChannelTest.java
public void testAccept_NonBlock_NotYetBound() throws IOException {
    assertTrue(this.serverChannel.isOpen());
    this.serverChannel.configureBlocking(false);
    try {
        this.serverChannel.accept();
        fail("Should throw NotYetBoundException");
    } catch (NotYetBoundException e) {
        // correct
    }
}
 
源代码17 项目: j2objc   文件: NotYetBoundExceptionTest.java
/**
 * @tests {@link java.nio.channels.NotYetBoundException#NotYetBoundException()}
 */
public void test_Constructor() {
    NotYetBoundException e = new NotYetBoundException();
    assertNull(e.getMessage());
    assertNull(e.getLocalizedMessage());
    assertNull(e.getCause());
}
 
源代码18 项目: j2objc   文件: NotYetBoundExceptionTest.java
/**
 * @tests serialization/deserialization compatibility.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new NotYetBoundException());
}
 
源代码19 项目: j2objc   文件: NotYetBoundExceptionTest.java
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new NotYetBoundException());
}
 
 类所在包
 同包方法