Trait common_meta::ddl::flow_meta::PartitionPeerAllocator

source ·
pub trait PartitionPeerAllocator: Send + Sync {
    // Required method
    fn alloc<'life0, 'async_trait>(
        &'life0 self,
        cluster_id: ClusterId,
        partitions: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Peer>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Allocates Peers for partitions.

Required Methods§

source

fn alloc<'life0, 'async_trait>( &'life0 self, cluster_id: ClusterId, partitions: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<Peer>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Allocates Peer nodes for storing partitions.

Implementors§