public class DefaultObservable extends Object implements Observable
| Constructor and Description |
|---|
DefaultObservable() |
| Modifier and Type | Method and Description |
|---|---|
Listener |
getListener() |
void |
notifyAddListener(io.netty.handler.codec.http.HttpContent httpContent)
Notify when content is added to message.
|
void |
notifyGetListener(io.netty.handler.codec.http.HttpContent httpContent)
Notify when content is removed from message.
|
void |
notifyReadInterest() |
void |
removeListener()
Remove listener from the observable.
|
void |
setListener(Listener listener)
Set listener interested for message events.
|
public void setListener(Listener listener)
ObservablesetListener in interface Observablelistener - for messagepublic void removeListener()
ObservableremoveListener in interface Observablepublic void notifyAddListener(io.netty.handler.codec.http.HttpContent httpContent)
ObservablenotifyAddListener in interface ObservablehttpContent - of the messagepublic void notifyGetListener(io.netty.handler.codec.http.HttpContent httpContent)
ObservablenotifyGetListener in interface ObservablehttpContent - of the messagepublic void notifyReadInterest()
notifyReadInterest in interface Observablepublic Listener getListener()
getListener in interface ObservableCopyright © 2021 WSO2. All rights reserved.