public abstract class SparkHttpContentConsumer extends HttpContentConsumer
HttpContentConsumer for SparkHttpServiceHandler for large request body consumption.
It is more suitable for Spark handler use cases that it uses explicit transaction
for the onFinish(HttpServiceResponder) and onError(HttpServiceResponder, Throwable) methods.| Constructor and Description |
|---|
SparkHttpContentConsumer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onError(HttpServiceResponder responder,
Throwable failureCause) |
abstract void |
onFinish(HttpServiceResponder responder) |
onReceivedpublic abstract void onFinish(HttpServiceResponder responder) throws Exception
onFinish in class HttpContentConsumerExceptionpublic abstract void onError(HttpServiceResponder responder, Throwable failureCause)
onError in class HttpContentConsumerCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.