public interface EntityCollector
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpContent(io.netty.handler.codec.http.HttpContent httpContent)
Add httpContent to the queue.
|
void |
addMessageBody(ByteBuffer msgBody)
Add the ByteBuffer version the httpContent to the queue.
|
void |
completeMessage()
Complete the message.
|
long |
countMessageLengthTill(long maxLength)
Count the message length till the given message length and returns.
|
long |
getFullMessageLength()
Get the full message length
|
io.netty.handler.codec.http.HttpContent |
getHttpContent()
Get the first httpContent from the queue.
|
io.netty.buffer.ByteBuf |
getMessageBody()
Get the first ByteBuffer version of the HttpContent from the queue.
|
boolean |
isEmpty()
Check if the queue is empty.
|
void |
waitAndReleaseAllEntities()
This is need to release content before GC
|
void addHttpContent(io.netty.handler.codec.http.HttpContent httpContent)
httpContent - httpContentio.netty.handler.codec.http.HttpContent getHttpContent()
io.netty.buffer.ByteBuf getMessageBody()
void addMessageBody(ByteBuffer msgBody)
msgBody - ByteBuffer version of the httpContent.boolean isEmpty()
long getFullMessageLength()
long countMessageLengthTill(long maxLength)
throws IllegalStateException
maxLength - is the maximum length to countIllegalStateException - if illegal state occurs in the absence of contentvoid completeMessage()
void waitAndReleaseAllEntities()
Copyright © 2021 WSO2. All rights reserved.