pub struct BlockingPoolManager { /* private fields */ }Expand description
Manager for multiple blocking pools with workload isolation
Implementations§
Source§impl BlockingPoolManager
impl BlockingPoolManager
Sourcepub fn with_configs(
request_config: BlockingPoolConfig,
compaction_config: BlockingPoolConfig,
checkpoint_config: BlockingPoolConfig,
) -> Self
pub fn with_configs( request_config: BlockingPoolConfig, compaction_config: BlockingPoolConfig, checkpoint_config: BlockingPoolConfig, ) -> Self
Create with custom configurations
Sourcepub fn pool(&self, pool_type: PoolType) -> &BlockingPool
pub fn pool(&self, pool_type: PoolType) -> &BlockingPool
Get pool by type
Sourcepub fn submit_request<F>(&self, task: F) -> Result<(), BlockingPoolError>
pub fn submit_request<F>(&self, task: F) -> Result<(), BlockingPoolError>
Submit to request pool
Sourcepub fn submit_compaction<F>(&self, task: F) -> Result<(), BlockingPoolError>
pub fn submit_compaction<F>(&self, task: F) -> Result<(), BlockingPoolError>
Submit to compaction pool
Sourcepub fn submit_checkpoint<F>(&self, task: F) -> Result<(), BlockingPoolError>
pub fn submit_checkpoint<F>(&self, task: F) -> Result<(), BlockingPoolError>
Submit to checkpoint pool
Sourcepub fn all_metrics(&self) -> Vec<(PoolType, &PoolMetrics)>
pub fn all_metrics(&self) -> Vec<(PoolType, &PoolMetrics)>
Get all pool metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockingPoolManager
impl !RefUnwindSafe for BlockingPoolManager
impl Send for BlockingPoolManager
impl Sync for BlockingPoolManager
impl Unpin for BlockingPoolManager
impl UnsafeUnpin for BlockingPoolManager
impl !UnwindSafe for BlockingPoolManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request