public class DefaultFullHttpMessageFuture extends Object implements FullHttpMessageFuture
FullHttpMessageFuture.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(FullHttpMessageListener messageListener)
Set listener interested for complete
HttpCarbonMessage. |
void |
notifyFailure(Exception error)
Notify the error occurs during the accumulation.
|
void |
notifySuccess()
The notifySuccess() method can get invoked by both I/O thread and Worker thread.
|
void |
removeListener()
Remove listener from the future.
|
public void addListener(FullHttpMessageListener messageListener)
FullHttpMessageFutureHttpCarbonMessage.addListener in interface FullHttpMessageFuturemessageListener - for messagepublic void removeListener()
FullHttpMessageFutureremoveListener in interface FullHttpMessageFuturepublic void notifySuccess()
HttpCarbonMessage. I/O thread uses
setLastHttpContentArrived() method which is a synchronized caller method. Therefore notifySuccess() is thread
safe and does not required to be synchronized.notifySuccess in interface FullHttpMessageFuturepublic void notifyFailure(Exception error)
FullHttpMessageFuturenotifyFailure in interface FullHttpMessageFutureerror - of the messageCopyright © 2022 WSO2. All rights reserved.