public class PassthroughBackPressureListener extends Object implements BackPressureListener
BackPressureListener for the passthrough scenario.| Constructor and Description |
|---|
PassthroughBackPressureListener(io.netty.channel.ChannelHandlerContext inContext)
Sets the incoming and outgoing message channels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onUnWritable()
Get notified to start throttling.
|
void |
onWritable()
Get notified to release throttling.
|
public PassthroughBackPressureListener(io.netty.channel.ChannelHandlerContext inContext)
inContext - This will be used to block and resume read interest of the incoming channel.public void onUnWritable()
BackPressureListeneronUnWritable in interface BackPressureListenerpublic void onWritable()
BackPressureListeneronWritable in interface BackPressureListenerCopyright © 2022 WSO2. All rights reserved.