Uses of Interface
com.sun.sgs.nio.channels.CompletionHandler

Packages that use CompletionHandler
com.sun.sgs.impl.nio Implements asynchronous IO as specified by the package com.sun.sgs.nio.channels
com.sun.sgs.impl.protocol.simple Provides an implementation of the protocol layer APIs using the SimpleSgsProtocol
com.sun.sgs.nio.channels Defines asynchronous channels that are connected to a stream-oriented connecting or listening socket, or a datagram-oriented socket. 
 

Uses of CompletionHandler in com.sun.sgs.impl.nio
 

Classes in com.sun.sgs.impl.nio that implement CompletionHandler
 class DelegatingCompletionHandler<OR,OA,IR,IA>
          An abstract base class for defining a CompletionHandler to use when implementing methods that return an IoFuture, have a CompletionHandler parameter, and are implemented by making calls to similar methods.
 

Methods in com.sun.sgs.impl.nio with parameters of type CompletionHandler
<A> IoFuture<AsynchronousSocketChannel,A>
AsyncServerSocketChannelImpl.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
(package private)
<R,A> Runnable
AsyncGroupImpl.completionRunner(CompletionHandler<R,A> handler, A attachment, Future<R> future)
          Returns a runnable that will invoke the given completion handler.
<A> IoFuture<Void,A>
AsyncDatagramChannelImpl.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
          Connects this channel.
<A> IoFuture<Void,A>
AsyncSocketChannelImpl.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
          Connects this channel.
<A> IoFuture<Void,A>
AsyncDatagramChannelImpl.disconnect(A attachment, CompletionHandler<Void,? super A> handler)
          Disconnects this channel.
(package private)
<R,A> IoFuture<R,A>
Reactor.PendingOperation.execute(A attachment, CompletionHandler<R,? super A> handler, long timeout, TimeUnit unit, Callable<R> callable)
          Attempts to initiate an asynchronous operation.
<R,A> IoFuture<R,A>
AsyncKey.execute(int op, A attachment, CompletionHandler<R,? super A> handler, long timeout, TimeUnit unit, Callable<R> callable)
          Initiates the given operation asynchronously on the underlying channel, and returns a future representing the result.
<R,A> IoFuture<R,A>
Reactor.ReactiveAsyncKey.execute(int op, A attachment, CompletionHandler<R,? super A> handler, long timeout, TimeUnit unit, Callable<R> callable)
          Initiates the given operation asynchronously on the underlying channel, and returns a future representing the result.
<A> IoFuture<Long,A>
AsyncSocketChannelImpl.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> IoFuture<Integer,A>
AsyncDatagramChannelImpl.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<Integer,A>
AsyncSocketChannelImpl.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> IoFuture<SocketAddress,A>
AsyncDatagramChannelImpl.receive(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
<R,A> void
AsyncKey.runCompletion(CompletionHandler<R,A> handler, A attachment, Future<R> future)
          Invokes the given completion handler, if it is not null; otherwise does nothing.
<R,A> void
Reactor.ReactiveAsyncKey.runCompletion(CompletionHandler<R,A> handler, A attachment, Future<R> future)
          Invokes the given completion handler, if it is not null; otherwise does nothing.
<A> IoFuture<Integer,A>
AsyncDatagramChannelImpl.send(ByteBuffer src, SocketAddress target, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Sends a datagram via this channel.
<A> IoFuture<Long,A>
AsyncSocketChannelImpl.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> IoFuture<Integer,A>
AsyncDatagramChannelImpl.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a datagram to this channel.
<A> IoFuture<Integer,A>
AsyncSocketChannelImpl.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.
 

Constructors in com.sun.sgs.impl.nio with parameters of type CompletionHandler
DelegatingCompletionHandler(OA outerAttachment, CompletionHandler<OR,OA> outerHandler)
          Creates an instance for the specified attachment and handler.
 

Uses of CompletionHandler in com.sun.sgs.impl.protocol.simple
 

Methods in com.sun.sgs.impl.protocol.simple with parameters of type CompletionHandler
 IoFuture<ByteBuffer,Void> AsynchronousMessageChannel.read(CompletionHandler<ByteBuffer,Void> handler)
          Initiates reading a complete message from this channel.
 IoFuture<Void,Void> AsynchronousMessageChannel.write(ByteBuffer src, CompletionHandler<Void,Void> handler)
          Initiates writing a complete message from the given buffer to the underlying channel, and returns a future for controlling the operation.
 

Uses of CompletionHandler in com.sun.sgs.nio.channels
 

Methods in com.sun.sgs.nio.channels with parameters of type CompletionHandler
abstract
<A> IoFuture<AsynchronousSocketChannel,A>
AsynchronousServerSocketChannel.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
<A> IoFuture<AsynchronousSocketChannel,A>
AsynchronousServerSocketChannel.accept(CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
abstract
<A> IoFuture<Void,A>
AsynchronousSocketChannel.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
          Connects this channel.
abstract
<A> IoFuture<Void,A>
AsynchronousDatagramChannel.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
          Connects this channel.
<A> IoFuture<Void,A>
AsynchronousSocketChannel.connect(SocketAddress remote, CompletionHandler<Void,? super A> handler)
          Connects this channel.
<A> IoFuture<Void,A>
AsynchronousDatagramChannel.connect(SocketAddress remote, CompletionHandler<Void,? super A> handler)
          Connects this channel.
abstract
<A> IoFuture<Void,A>
AsynchronousDatagramChannel.disconnect(A attachment, CompletionHandler<Void,? super A> handler)
          Disconnects this channel.
<A> IoFuture<Void,A>
AsynchronousDatagramChannel.disconnect(CompletionHandler<Void,? super A> handler)
          Disconnects this channel.
abstract
<A> IoFuture<Long,A>
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> IoFuture<Integer,A>
AsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<Integer,A>
AsynchronousByteChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
<A> IoFuture<Integer,A>
AsynchronousSocketChannel.read(ByteBuffer dst, CompletionHandler<Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.read(ByteBuffer dst, CompletionHandler<Integer,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<Integer,A>
AsynchronousByteChannel.read(ByteBuffer dst, CompletionHandler<Integer,? super A> handler)
          Reads a sequence of bytes from this channel into the given buffer.
abstract
<A> IoFuture<Integer,A>
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> IoFuture<Integer,A>
AsynchronousDatagramChannel.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<SocketAddress,A>
AsynchronousDatagramChannel.receive(ByteBuffer dst, A attachment, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<SocketAddress,A>
AsynchronousDatagramChannel.receive(ByteBuffer dst, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
abstract
<A> IoFuture<SocketAddress,A>
AsynchronousDatagramChannel.receive(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<SocketAddress,? super A> handler)
          Receives a datagram via this channel.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.send(ByteBuffer src, SocketAddress target, A attachment, CompletionHandler<Integer,? super A> handler)
          Sends a datagram via this channel.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.send(ByteBuffer src, SocketAddress target, CompletionHandler<Integer,? super A> handler)
          Sends a datagram via this channel.
abstract
<A> IoFuture<Integer,A>
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> IoFuture<Long,A>
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> IoFuture<Integer,A>
AsynchronousSocketChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a datagram to this channel.
<A> IoFuture<Integer,A>
AsynchronousByteChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
<A> IoFuture<Integer,A>
AsynchronousSocketChannel.write(ByteBuffer src, CompletionHandler<Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
<A> IoFuture<Integer,A>
AsynchronousDatagramChannel.write(ByteBuffer src, CompletionHandler<Integer,? super A> handler)
          Writes a datagram to this channel.
<A> IoFuture<Integer,A>
AsynchronousByteChannel.write(ByteBuffer src, CompletionHandler<Integer,? super A> handler)
          Writes a sequence of bytes to this channel from the given buffer.
abstract
<A> IoFuture<Integer,A>
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> IoFuture<Integer,A>
AsynchronousDatagramChannel.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
          Writes a datagram to this channel.
 


RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved