org.glassfish.grizzly
Interface Readable<L>

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

public interface Readable<L>

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> void
read(CompletionHandler<ReadResult<M,L>> completionHandler)
           
 

Method Detail

read

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

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

read

<M> void read(CompletionHandler<ReadResult<M,L>> completionHandler)


Copyright © 2012 Oracle Corporation. All Rights Reserved.