Interface NettyServiceProducer
-
- All Known Implementing Classes:
DiskIOScheduler,DiskTierProducerAgent,MemoryTierProducerAgent
public interface NettyServiceProducerNettyServiceProduceris used as the callback to registerNettyConnectionWriterand disconnect netty connection inTierProducerAgent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionBroken(NettyConnectionId connectionId)NettyConnectionWriterrelated to a connection id will be notified when the netty connection is broken.voidconnectionEstablished(TieredStorageSubpartitionId subpartitionId, NettyConnectionWriter nettyConnectionWriter)NettyConnectionWriterwill be created when a netty connection is established for a subpartition.
-
-
-
Method Detail
-
connectionEstablished
void connectionEstablished(TieredStorageSubpartitionId subpartitionId, NettyConnectionWriter nettyConnectionWriter)
NettyConnectionWriterwill be created when a netty connection is established for a subpartition.- Parameters:
subpartitionId- subpartition id indicates the id of subpartition.nettyConnectionWriter- writer is used to write buffers to netty connection.
-
connectionBroken
void connectionBroken(NettyConnectionId connectionId)
NettyConnectionWriterrelated to a connection id will be notified when the netty connection is broken.- Parameters:
connectionId- connection id is the id of connection.
-
-