Package io.prestosql.operator
Interface HttpPageBufferClient.ClientCallback
-
- Enclosing class:
- HttpPageBufferClient
public static interface HttpPageBufferClient.ClientCallback
For 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 boolean
addPages(HttpPageBufferClient client, List<SerializedPage> pages)
void
clientFailed(HttpPageBufferClient client, Throwable cause)
void
clientFinished(HttpPageBufferClient client)
void
requestComplete(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)
-
-