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

Packages that use IoFuture
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.impl.transport.tcp Provides an implementation of the transport layer APIs using TCP. 
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 IoFuture in com.sun.sgs.impl.nio
 

Classes in com.sun.sgs.impl.nio that implement IoFuture
 class AttachedFuture<R,A>
          An implementation of IoFuture that adds an object attachment to an arbitrary Future.
 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.
 class IoFutureTask<R,A>
          An implementation of IoFuture that adds an object attachment to a FutureTask.
 

Methods in com.sun.sgs.impl.nio that return IoFuture
<A> IoFuture<AsynchronousSocketChannel,A>
AsyncServerSocketChannelImpl.accept(A attachment, CompletionHandler<AsynchronousSocketChannel,? super A> handler)
          Accepts a connection.
<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.
protected abstract  IoFuture<IR,IA> DelegatingCompletionHandler.implCompleted(IoFuture<IR,IA> innerResult)
          Called when the delegated computation completes.
protected abstract  IoFuture<IR,IA> DelegatingCompletionHandler.implStart()
          Starts the computation, returning a future for managing the inner computation or null to indicate that the computation is completed.
static
<R,A> IoFuture
IoFutureTask.newInstance(Callable<R> callable, A attachment)
          Creates an instance of this class for running the specified Callable and including the specified attachment.
<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.
<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.
 IoFuture<OR,OA> DelegatingCompletionHandler.start()
          Starts the computation and returns a future representing the result of the computation.
<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.
 

Methods in com.sun.sgs.impl.nio with parameters of type IoFuture
 void DelegatingCompletionHandler.completed(IoFuture<IR,IA> innerResult)
          Invoked when an inner computation has completed.
protected abstract  IoFuture<IR,IA> DelegatingCompletionHandler.implCompleted(IoFuture<IR,IA> innerResult)
          Called when the delegated computation completes.
 

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

Methods in com.sun.sgs.impl.protocol.simple that return IoFuture
 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 IoFuture in com.sun.sgs.impl.transport.tcp
 

Fields in com.sun.sgs.impl.transport.tcp declared as IoFuture
(package private)  IoFuture<?,?> TcpTransport.acceptFuture
          The currently-active accept operation, or null if none.
 

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

Methods in com.sun.sgs.nio.channels that return IoFuture
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.
 

Methods in com.sun.sgs.nio.channels with parameters of type IoFuture
 void CompletionHandler.completed(IoFuture<R,A> result)
          Invoked when an operation has completed.
 


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