Interface CometDRequest.Input.Chunk
- Enclosing interface:
CometDRequest.Input
public static interface CometDRequest.Input.Chunk
Request content bytes with the indication of whether they are the last.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CometDRequest.Input.ChunkA convenientCometDRequest.Input.Chunkconstant indicating end-of-file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLast()voidrelease()Releases thisCometDRequest.Input.Chunkso itsbyteBuffer()can be recycled.
-
Field Details
-
EOF
A convenient
CometDRequest.Input.Chunkconstant indicating end-of-file.
-
-
Method Details
-
byteBuffer
ByteBuffer byteBuffer()- Returns:
- the
ByteBuffercontaining the request content bytes
-
isLast
boolean isLast()- Returns:
- whether this
CometDRequest.Input.Chunkis the last
-
release
void release()Releases this
CometDRequest.Input.Chunkso itsbyteBuffer()can be recycled.
-