DoneCallback
@Deprecated public interface WriteCallback
Modifier and Type | Field and Description |
---|---|
static WriteCallback |
NoOp
Deprecated.
A write callback that does nothing when it receives the callbacks
|
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable reason)
Deprecated.
Called if the write failed, for example if the user closed their browser while writing to it
|
void |
onSuccess()
Deprecated.
Called if the write succeeds
|
static final WriteCallback NoOp
void onSuccess() throws Exception
Exception
- thrown when the callback throws an exception, in which case the response will be closed.void onFailure(Throwable reason) throws Exception
reason
- The reason for the failureException
- thrown when the callback throws an exception, in which case the response will be closed.Copyright © 2017–2020. All rights reserved.