Interface TieredStorageNettyService
- All Known Implementing Classes:
TieredStorageNettyServiceImpl
public interface TieredStorageNettyService
TieredStorageNettyService is used to create writers and readers to netty.-
Method Summary
Modifier and TypeMethodDescriptionregisterConsumer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId) TierConsumerAgentwill register toTieredStorageNettyServiceand get a future ofNettyConnectionReader.voidregisterProducer(TieredStoragePartitionId partitionId, NettyServiceProducer serviceProducer) TierProducerAgentwill provide a callback namedNettyServiceProducerto register toTieredStorageNettyService.
-
Method Details
-
registerProducer
TierProducerAgentwill provide a callback namedNettyServiceProducerto register toTieredStorageNettyService.- Parameters:
partitionId- partition id indicates the unique id ofTieredResultPartition.serviceProducer- serviceProducer is a callback fromTierProducerAgentand used to register aNettyConnectionWriterand disconnect the netty connection.
-
registerConsumer
CompletableFuture<NettyConnectionReader> registerConsumer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId) TierConsumerAgentwill register toTieredStorageNettyServiceand get a future ofNettyConnectionReader.- Parameters:
partitionId- partition id indicates the unique id ofTieredResultPartition.subpartitionId- subpartition id indicates the unique id of subpartition.- Returns:
- the future of netty connection reader.
-