NIO2 API

Uses of Interface
org.classpath.icedtea.java.nio.channels.CompletionHandler

Packages that use CompletionHandler
org.classpath.icedtea.java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. 
 

Uses of CompletionHandler in org.classpath.icedtea.java.nio.channels
 

Methods in org.classpath.icedtea.java.nio.channels with parameters of type CompletionHandler
abstract
<A> java.util.concurrent.Future<AsynchronousSocketChannel>
AsynchronousServerSocketChannel.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
abstract
<A> java.util.concurrent.Future<java.lang.Void>
AsynchronousSocketChannel.connect(java.net.SocketAddress remote, A attachment, CompletionHandler<java.lang.Void,? super A> handler)
          Connects this channel.
<A> java.util.concurrent.Future<FileLock>
AsynchronousFileChannel.lock(A attachment, CompletionHandler<FileLock,? super A> handler)
          Acquires an exclusive lock on this channel's file.
abstract
<A> java.util.concurrent.Future<FileLock>
AsynchronousFileChannel.lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler)
          Acquires a lock on the given region of this channel's file.
abstract
<A> java.util.concurrent.Future<java.lang.Long>
AsynchronousSocketChannel.read(java.nio.ByteBuffer[] dsts, int offset, int length, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Long,? super A> handler)
          Reads a sequence of bytes from this channel into a subsequence of the given buffers.
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousSocketChannel.read(java.nio.ByteBuffer dst, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
           
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.read(java.nio.ByteBuffer dst, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
           
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousByteChannel.read(java.nio.ByteBuffer dst, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousFileChannel.read(java.nio.ByteBuffer dst, long position, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousSocketChannel.read(java.nio.ByteBuffer dst, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.read(java.nio.ByteBuffer dst, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Receives a datagram via this channel.
<A> java.util.concurrent.Future<java.net.SocketAddress>
AsynchronousDatagramChannel.receive(java.nio.ByteBuffer dst, A attachment, CompletionHandler<java.net.SocketAddress,? super A> handler)
          Receives a datagram via this channel.
abstract
<A> java.util.concurrent.Future<java.net.SocketAddress>
AsynchronousDatagramChannel.receive(java.nio.ByteBuffer dst, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.net.SocketAddress,? super A> handler)
          Receives a datagram via this channel.
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.send(java.nio.ByteBuffer src, java.net.SocketAddress target, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Sends a datagram via this channel.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.send(java.nio.ByteBuffer src, java.net.SocketAddress target, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Sends a datagram via this channel.
abstract
<A> java.util.concurrent.Future<java.lang.Long>
AsynchronousSocketChannel.write(java.nio.ByteBuffer[] srcs, int offset, int length, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Long,? super A> handler)
          Writes a sequence of bytes to this channel from a subsequence of the given buffers.
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousSocketChannel.write(java.nio.ByteBuffer src, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
           
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.write(java.nio.ByteBuffer src, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
           
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousByteChannel.write(java.nio.ByteBuffer src, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousFileChannel.write(java.nio.ByteBuffer src, long position, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousSocketChannel.write(java.nio.ByteBuffer src, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
abstract
<A> java.util.concurrent.Future<java.lang.Integer>
AsynchronousDatagramChannel.write(java.nio.ByteBuffer src, long timeout, java.util.concurrent.TimeUnit unit, A attachment, CompletionHandler<java.lang.Integer,? super A> handler)
          Writes a datagram to this channel.
 


NIO2 API

Submit a bug or feature

Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to the terms of the GNU General Public License.