HttpInput and Content.Source .
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the available byte count.Get the byte count that can immediately be read from this
|
| public void | |
| public boolean | Returns: true if EOF was reached.Fail all content currently available in this |
| public long | Returns: the byte count produced by the underlyingContent..Get the byte count produced by the underlying |
| public boolean | Returns: true if thisContentProducer instance contains content, false otherwise.Check if this |
| public boolean | Returns: true if the underlyingContent. reached an error content, false otherwise.Check if the underlying |
| public boolean | Returns: true if some content is immediately available, false otherwise.Check if this |
| public Content. | Returns: the next content chunk that can be read from or null if the implementation does not block and has no available content.Get the next content chunk that can be read from or that describes the terminal condition that was reached (error, eof). |
| public boolean | Returns: true if the thread has to be rescheduled, false otherwise.Wake up the thread that is waiting for the next content. |
| public void | reclaim(Content.
Free up the content by calling |
| public void | recycle()
A recycled |
| public void | reopen()
Reset all internal state, making this is instance logically equivalent to a freshly allocated one. |
| available | back to summary |
|---|---|
| public int available() Get the byte count that can immediately be read from this
| |
| checkMinDataRate | back to summary |
|---|---|
| public void checkMinDataRate() Check if the current data rate consumption is above the minimal rate. Abort the channel, fail the content currently available and throw a BadMessageException(REQUEST_TIMEOUT_408) if the check fails. | |
| consumeAvailable | back to summary |
|---|---|
| public boolean consumeAvailable() Fail all content currently available in this
| |
| getBytesArrived | back to summary |
|---|---|
| public long getBytesArrived() Get the byte count produced by the underlying
| |
| hasChunk | back to summary |
|---|---|
| public boolean hasChunk() Check if this
| |
| isError | back to summary |
|---|---|
| public boolean isError() Check if the underlying
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Check if this
| |
| nextChunk | back to summary |
|---|---|
| public Content. Get the next content chunk that can be read from or that describes the terminal condition that was reached (error, eof). This call may or may not block until some content is available, depending on the implementation. After this call, state can be either of UNREADY or IDLE. | |
| onContentProducible | back to summary |
|---|---|
| public boolean onContentProducible() Wake up the thread that is waiting for the next content. After this call, state can be READY.
| |
| reclaim | back to summary |
|---|---|
| public void reclaim(Content. Free up the content by calling | |
| recycle | back to summary |
|---|---|
| public void recycle() A recycled | |
| reopen | back to summary |
|---|---|
| public void reopen() Reset all internal state, making this is instance logically equivalent to a freshly allocated one. | |