Interface NettyServiceProducer
- All Known Implementing Classes:
DiskIOScheduler,DiskTierProducerAgent,MemoryTierProducerAgent
public interface NettyServiceProducer
NettyServiceProducer is used as the callback to register NettyConnectionWriter
and disconnect netty connection in TierProducerAgent.-
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionBroken(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 Details
-
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
NettyConnectionWriterrelated to a connection id will be notified when the netty connection is broken.- Parameters:
connectionId- connection id is the id of connection.
-