Uses of Interface
java.nio.channels.CompletionHandler
Packages that use CompletionHandler
Package
Description
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 java.nio.channelsMethods in java.nio.channels with parameters of type CompletionHandlerModifier and TypeMethodDescriptionabstract <A> voidAsynchronousServerSocketChannel.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)Accepts a connection.abstract <A> voidAsynchronousSocketChannel.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)Connects this channel.abstract <A> voidAsynchronousFileChannel.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.<A> voidAsynchronousFileChannel.lock(A attachment, CompletionHandler<FileLock,? super A> handler)Acquires an exclusive lock on this channel's file.<A> voidAsynchronousByteChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)Reads a sequence of bytes from this channel into the given buffer.abstract <A> voidAsynchronousFileChannel.read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler)Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.abstract <A> voidAsynchronousSocketChannel.read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract <A> voidAsynchronousSocketChannel.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)Reads a sequence of bytes from this channel into the given buffer.<A> voidAsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)<A> voidAsynchronousByteChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)Writes a sequence of bytes to this channel from the given buffer.abstract <A> voidAsynchronousFileChannel.write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler)Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.abstract <A> voidAsynchronousSocketChannel.write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)Writes a sequence of bytes to this channel from a subsequence of the given buffers.abstract <A> voidAsynchronousSocketChannel.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)Writes a sequence of bytes to this channel from the given buffer.<A> voidAsynchronousSocketChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)