Interface CometDRequest.Input
- Enclosing interface:
CometDRequest
public static interface CometDRequest.Input
The source of the request body.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Request content bytes with the indication of whether they are the last. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Demands to invoke the given callback when request content bytes are available.read()
Reads request content bytes into aCometDRequest.Input.Chunk
.
-
Method Details
-
demand
Demands to invoke the given callback when request content bytes are available.
- Parameters:
demandCallback
- the callback to invoke when request content bytes are available
-
read
Reads request content bytes into a
CometDRequest.Input.Chunk
.The returned
CometDRequest.Input.Chunk
can be:null
, if no request content bytes are available- a possibly empty
CometDRequest.Input.Chunk
of request content bytes
- Returns:
- a
CometDRequest.Input.Chunk
of request content bytes, ornull
if no request content bytes are available - Throws:
IOException
- if the read fails
-