Connection to a Buffer.
There are two basic Reader implementations in Grizzly: org.glassfish.grizzly.asyncqueue.AsyncQueueReader ,
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader .
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public GrizzlyFuture | Returns: Future, using which it's possible to check the resultthe connection)Connection to read fromMethod reads data. |
| public GrizzlyFuture | Returns: Future, using which it's possible to check the resultthe connection, Buffer Connection to read fromthe buffer, where data will be read buffer)Method reads data to the buffer. |
| public void | read(Connection<L>
the connection, Buffer Connection to read fromthe buffer, where data will be read buffer, CompletionHandler<ReadResult<Buffer, L>> CompletionHandler, which will get notified, when read will be completedMethod reads data to the buffer. |
| public void | read(Connection<L>
the connection, Buffer Connection to read fromthe buffer, CompletionHandler<ReadResult<Buffer, L>> Buffer to which data will be readCompletionHandler, which will get notified, when read will be completedInterceptor, which will be able to intercept control each time new portion of a data was
read to a buffer. The interceptor can decide, whether asynchronous read is completed or not, or
provide other processing instructions.Method reads data to the buffer. |
| COMPLETE_EVENT | back to summary |
|---|---|
| public static final int COMPLETE_EVENT | |
| INCOMPLETE_EVENT | back to summary |
|---|---|
| public static final int INCOMPLETE_EVENT | |
| READ_EVENT | back to summary |
|---|---|
| public static final int READ_EVENT | |
| read | back to summary |
|---|---|
| public GrizzlyFuture Method reads data.
| |
| read | back to summary |
|---|---|
| public GrizzlyFuture Method reads data to the buffer.
| |
| read | back to summary |
|---|---|
| public void read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer, L>> completionHandler) Method reads data to the buffer.
| |
| read | back to summary |
|---|---|
| public void read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer, L>> completionHandler, Interceptor<ReadResult<K, L>> interceptor) Method reads data to the buffer.
| |