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
read
<M> GrizzlyFuture<ReadResult<M,L>> read()
throws java.io.IOException
- Method reads data.
- Returns:
Future, using which it's possible to check the result
- Throws:
java.io.IOException
read
<M> GrizzlyFuture<ReadResult<M,L>> read(CompletionHandler<ReadResult<M,L>> completionHandler)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 Oracle Corpration. All Rights Reserved.