pub struct AdaptiveBatchProcessor { /* private fields */ }
Expand description
自适应批处理器(根据系统负载调整参数)
Implementations§
Source§impl AdaptiveBatchProcessor
impl AdaptiveBatchProcessor
Sourcepub fn new(
initial_config: BatchConfig,
memory_manager: Arc<GlobalMemoryManager>,
) -> Self
pub fn new( initial_config: BatchConfig, memory_manager: Arc<GlobalMemoryManager>, ) -> Self
创建自适应批处理器
Sourcepub async fn adapt_configuration(&self)
pub async fn adapt_configuration(&self)
自适应调整配置
Auto Trait Implementations§
impl Freeze for AdaptiveBatchProcessor
impl !RefUnwindSafe for AdaptiveBatchProcessor
impl Send for AdaptiveBatchProcessor
impl Sync for AdaptiveBatchProcessor
impl Unpin for AdaptiveBatchProcessor
impl !UnwindSafe for AdaptiveBatchProcessor
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