Package java.nio.channels

Examples of java.nio.channels.AsynchronousCloseException


    {
        // First close then abort, to be sure that the connection cannot be reused
        // from an onFailure() handler or by blocking code waiting for completion.
        getHttpDestination().close(this);
        session.goAway(new GoAwayInfo(), Callback.Adapter.INSTANCE);
        abort(new AsynchronousCloseException());
    }
View Full Code Here


                interrupted = false;
                throw new ClosedByInterruptException();
            }
        }
        if (!success && closed) {
            throw new AsynchronousCloseException();
        }
    }
View Full Code Here

                interrupted = false;
                throw new ClosedByInterruptException();
            }
        }
        if (!success && closed) {
            throw new AsynchronousCloseException();
        }
    }
View Full Code Here

                interrupted = false;
                throw new ClosedByInterruptException();
            }
        }
        if (!success && closed) {
            throw new AsynchronousCloseException();
        }
    }
View Full Code Here

    /**
     * @tests {@link java.nio.channels.AsynchronousCloseException#AsynchronousCloseException()}
     */
    public void test_Constructor() {
        AsynchronousCloseException e = new AsynchronousCloseException();
        assertNull(e.getMessage());
        assertNull(e.getLocalizedMessage());
        assertNull(e.getCause());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(new AsynchronousCloseException());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this, new AsynchronousCloseException());
    }
View Full Code Here

   * @throws AsynchronousCloseException  If the status is closed.
   */
  public void unreferenceCheckClosed() throws ClosedChannelException {
    int newVal = status.decrementAndGet();
    if ((newVal & STATUS_CLOSED_MASK) != 0) {
      throw new AsynchronousCloseException();
    }
  }
View Full Code Here

  protected final void end(boolean completed)
    throws AsynchronousCloseException
  {
    // FIXME: check more here.
   
    if (closed) throw new AsynchronousCloseException();
  }
View Full Code Here

    lockCheck(position, size, shared);

    if (!ch.lock(position, size, shared, false))
      {
        if (!isOpen ())
          throw new AsynchronousCloseException();
        return null;
      }

    FileLock lock;
    try
View Full Code Here

TOP

Related Classes of java.nio.channels.AsynchronousCloseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.