Interface TieredStorageNettyService
-
- All Known Implementing Classes:
TieredStorageNettyServiceImpl
public interface TieredStorageNettyServiceTieredStorageNettyServiceis used to create writers and readers to netty.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<NettyConnectionReader>registerConsumer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId)TierConsumerAgentwill register toTieredStorageNettyServiceand get a future ofNettyConnectionReader.voidregisterProducer(TieredStoragePartitionId partitionId, NettyServiceProducer serviceProducer)TierProducerAgentwill provide a callback namedNettyServiceProducerto register toTieredStorageNettyService.
-
-
-
Method Detail
-
registerProducer
void registerProducer(TieredStoragePartitionId partitionId, NettyServiceProducer serviceProducer)
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.
-
-