Top Description Methods
org.glassfish.grizzly

public Interface Readable<L>

Known Direct Subinterfaces
org.glassfish.grizzly.Connection
Imports
java.util.concurrent.Future

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 TypeMethod and Description
public <
type of data to read
M
>
GrizzlyFuture<ReadResult<M, L>>

Returns:

Future, using which it's possible to check the result
read
()

Method reads data.

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

Method Detail

readback to summary
public <M> GrizzlyFuture<ReadResult<M, L>> read()

Method reads data.

Parameters
<M>
type of data to read
Returns:GrizzlyFuture<ReadResult<M, L>>

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

readback to summary
public <M> void read(CompletionHandler<ReadResult<M, L>> completionHandler)