Package io.trino.operator
Interface HttpPageBufferClient.ClientCallback
-
- Enclosing class:
- HttpPageBufferClient
public static interface HttpPageBufferClient.ClientCallbackFor each request, the addPage method will be called zero or more times, followed by either requestComplete or clientFinished (if buffer complete). If the client is closed, requestComplete or bufferFinished may never be called. NOTE: Implementations of this interface are not allowed to perform blocking operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddPages(HttpPageBufferClient client, List<SerializedPage> pages)voidclientFailed(HttpPageBufferClient client, Throwable cause)voidclientFinished(HttpPageBufferClient client)voidrequestComplete(HttpPageBufferClient client)
-
-
-
Method Detail
-
addPages
boolean addPages(HttpPageBufferClient client, List<SerializedPage> pages)
-
requestComplete
void requestComplete(HttpPageBufferClient client)
-
clientFinished
void clientFinished(HttpPageBufferClient client)
-
clientFailed
void clientFailed(HttpPageBufferClient client, Throwable cause)
-
-