Examples of AsynchronousCloseException


Examples of java.nio.channels.AsynchronousCloseException

      {
        begin();
        if (!ch.lock(position, size, shared, true))
          {
            if (!isOpen ())
              throw new AsynchronousCloseException();
            throw new FileLockInterruptionException();
          }
        try
          {
            lockTable.add(position, size);
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

                }
                else if (bytes == CLOSED)
                {
                    if (index < 0)
                        return -1;
                    throw new AsynchronousCloseException();
                }
                else if (bytes != null)
                {
                    int result = bytes[index] & 0xFF;
                    if (++index == bytes.length)
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

        return exchanges.remove(exchange);
    }

    public void close()
    {
        abort(new AsynchronousCloseException());
        if (LOG.isDebugEnabled())
            LOG.debug("Closed {}", this);
    }
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

    }

    @Override
    public void close()
    {
        close(new AsynchronousCloseException());
    }
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

        return exchanges.remove(exchange);
    }

    public void close()
    {
        abort(new AsynchronousCloseException());
        LOG.debug("Closed {}", this);
    }
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

   */
  private void fdUnref(boolean checkClosed) throws AsynchronousCloseException {
    int newCount = status.decrementAndGet();
    assert (newCount & ~STATUS_CLOSED_MASK) >= 0;
    if (checkClosed && ((newCount & STATUS_CLOSED_MASK) != 0)) {
      throw new AsynchronousCloseException();
    }
  }
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

        return exchanges.remove(exchange);
    }

    public void close()
    {
        abort(new AsynchronousCloseException());
        LOG.debug("Closed {}", this);
    }
View Full Code Here

Examples of java.nio.channels.AsynchronousCloseException

                }
                else if (bytes == CLOSED)
                {
                    if (index < 0)
                        return -1;
                    throw new AsynchronousCloseException();
                }
                else if (bytes != null)
                {
                    int result = bytes[index] & 0xFF;
                    if (++index == bytes.length)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.