|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Readable<L>
Implementatios of this interface are able to read data from internal source
to a Buffer.
Grizzly Connection extends Readable.
| Method Summary | |
|---|---|
Future<ReadResult<Buffer,L>> |
read()
Method reads data. |
Future<ReadResult<Buffer,L>> |
read(Buffer buffer)
Method reads data to the buffer. |
Future<ReadResult<Buffer,L>> |
read(Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
Method reads data to the buffer. |
Future<ReadResult<Buffer,L>> |
read(Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler,
Condition<ReadResult<Buffer,L>> condition)
Method reads data to the buffer. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
Future<ReadResult<Buffer,L>> read()
throws IOException
Future, using which it's possible to check the result
IOException
Future<ReadResult<Buffer,L>> read(Buffer buffer)
throws IOException
buffer - the buffer, where data will be read
Future, using which it's possible to check the result
IOException
Future<ReadResult<Buffer,L>> read(Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
throws IOException
buffer - the buffer, where data will be readcompletionHandler - CompletionHandler,
which will get notified, when read will be completed
Future, using which it's possible to check the result
IOException
Future<ReadResult<Buffer,L>> read(Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler,
Condition<ReadResult<Buffer,L>> condition)
throws IOException
buffer - the buffer, where data will be readcompletionHandler - CompletionHandler,
which will get notified, when read will be completedcondition - Condition, which will be checked
each time new portion of a data was read to a buffer.
The condition can decide, whether asynchronous read is
completed or not.
Future, using which it's possible to check the result
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||