Interface CometDRequest.Input
- Enclosing interface:
CometDRequest
public static interface CometDRequest.Input
The source of the request body.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRequest content bytes with the indication of whether they are the last. -
Method Summary
Modifier and TypeMethodDescriptionvoidDemands 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.Chunkcan be:null, if no request content bytes are available- a possibly empty
CometDRequest.Input.Chunkof request content bytes
- Returns:
- a
CometDRequest.Input.Chunkof request content bytes, ornullif no request content bytes are available - Throws:
IOException- if the read fails
-