public abstract class SparkHttpContentProducer extends HttpContentProducer
HttpContentProducer for SparkHttpServiceHandler to stream large response body.
It is more suitable for Spark handler use cases that it uses explicit transaction
for the onFinish() and onError(Throwable) methods.| Constructor and Description |
|---|
SparkHttpContentProducer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onError(Throwable failureCause) |
abstract void |
onFinish() |
getContentLength, nextChunkpublic abstract void onFinish()
throws Exception
onFinish in class HttpContentProducerExceptionpublic abstract void onError(Throwable failureCause)
onError in class HttpContentProducerCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.