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> Future<AsynchronousSocketChannel>
AsynchronousServerSocketChannel.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
abstract
<A> Future<Void>
AsynchronousSocketChannel.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
          Connects this channel.
<A> Future<FileLock>
AsynchronousFileChannel.lock(A attachment, CompletionHandler<FileLock,? super A> handler)
          Acquires an exclusive lock on this channel's file.
abstract
<A> 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> Future<Long>
AsynchronousSocketChannel.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.
<A> Future<Integer>
AsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
           
<A> Future<Integer>
AsynchronousDatagramChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
           
<A> Future<Integer>
AsynchronousByteChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
abstract
<A> Future<Integer>
AsynchronousFileChannel.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> Future<Integer>
AsynchronousSocketChannel.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.
abstract
<A> Future<Integer>
AsynchronousDatagramChannel.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Receives a datagram via this channel.
<A> Future<SocketAddress>
AsynchronousDatagramChannel.receive(ByteBuffer dst, A attachment, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
abstract
<A> Future<SocketAddress>
AsynchronousDatagramChannel.receive(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
<A> Future<Integer>
AsynchronousDatagramChannel.send(ByteBuffer src, SocketAddress target, A attachment, CompletionHandler<Integer,? super A> handler)
          Sends a datagram via this channel.
abstract
<A> Future<Integer>
AsynchronousDatagramChannel.send(ByteBuffer src, SocketAddress target, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Sends a datagram via this channel.
abstract
<A> Future<Long>
AsynchronousSocketChannel.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.
<A> Future<Integer>
AsynchronousSocketChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
           
<A> Future<Integer>
AsynchronousDatagramChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
           
<A> Future<Integer>
AsynchronousByteChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
abstract
<A> Future<Integer>
AsynchronousFileChannel.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> Future<Integer>
AsynchronousSocketChannel.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.
abstract
<A> Future<Integer>
AsynchronousDatagramChannel.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a datagram to this channel.
 


NIO2 API

Copyright © 2007, 2011, Oracle and/or its affiliates. All rights reserved.