Package 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 aBuffer. GrizzlyConnectionextendsReadable.- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <M> GrizzlyFuture<ReadResult<M,L>>read()Method reads data.<M> voidread(CompletionHandler<ReadResult<M,L>> completionHandler)
-
-
-
Method Detail
-
read
<M> GrizzlyFuture<ReadResult<M,L>> read()
Method reads data.- Type Parameters:
M- type of data to read- Returns:
Future, using which it's possible to check the result
-
read
<M> void read(CompletionHandler<ReadResult<M,L>> completionHandler)
-
-