接口 ResponseBodyEmitter.Handler
- 封闭类:
- ResponseBodyEmitter
static interface ResponseBodyEmitter.Handler
Contract to handle the sending of event data, the completion of event
sending, and the registration of callbacks to be invoked in case of
timeout, error, and completion for any reason (including from the
container side).
-
方法概要
修饰符和类型方法说明voidcomplete()voidcompleteWithError(Throwable failure) voidonCompletion(Runnable callback) voidvoidvoidImmediately write and flush the given data to the network.voidImmediately write all data items then flush to the network.
-
方法详细资料
-
send
Immediately write and flush the given data to the network.- 抛出:
IOException
-
send
Immediately write all data items then flush to the network.- 抛出:
IOException
-
complete
void complete() -
completeWithError
-
onTimeout
-
onError
-
onCompletion
-