org.glassfish.grizzly
Interface Readable<L>

All Superinterfaces:
Closeable
All Known Subinterfaces:
Connection<L>
All Known Implementing Classes:
NIOConnection, TCPNIOConnection, TCPNIOServerConnection, UDPNIOConnection, UDPNIOServerConnection

public interface Readable<L>
extends Closeable

Implementations of this interface are able to read data from internal source to a Buffer. Grizzly Connection extends Readable.

Author:
Alexey Stashok

Method Summary
<M> GrizzlyFuture<ReadResult<M,L>>
read()
          Method reads data.
<M> GrizzlyFuture<ReadResult<M,L>>
read(CompletionHandler<ReadResult<M,L>> completionHandler)
           
 
Methods inherited from interface org.glassfish.grizzly.Closeable
close
 

Method Detail

read

<M> GrizzlyFuture<ReadResult<M,L>> read()
                                    throws IOException
Method reads data.

Returns:
Future, using which it's possible to check the result
Throws:
IOException

read

<M> GrizzlyFuture<ReadResult<M,L>> read(CompletionHandler<ReadResult<M,L>> completionHandler)
                                    throws IOException
Throws:
IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.