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 a
Buffer
.
Grizzly Connection
extends Readable
.- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescription<M> GrizzlyFuture<ReadResult<M,
L>> read()
Method reads data.<M> void
read
(CompletionHandler<ReadResult<M, L>> completionHandler)
-
Method Details
-
read
Method reads data.- Type Parameters:
M
- type of data to read- Returns:
Future
, using which it's possible to check the result
-
read
-