pub struct BlockingWaitStrategy { /* private fields */ }Expand description
Blocking Wait Strategy.
Uses a lock and condition variable. Lowest CPU usage.
Implementations§
Trait Implementations§
Source§impl Default for BlockingWaitStrategy
impl Default for BlockingWaitStrategy
Source§impl WaitStrategy for BlockingWaitStrategy
impl WaitStrategy for BlockingWaitStrategy
Source§fn wait_for(
&self,
sequence: i64,
_cursor: &Arc<dyn Sequencer>,
dependent: &Arc<dyn Sequencer>,
barrier: &ProcessingSequenceBarrier,
) -> Result<i64, AlertException>
fn wait_for( &self, sequence: i64, _cursor: &Arc<dyn Sequencer>, dependent: &Arc<dyn Sequencer>, barrier: &ProcessingSequenceBarrier, ) -> Result<i64, AlertException>
Waits for the given sequence to be available.
Source§fn signal_all_when_blocking(&self)
fn signal_all_when_blocking(&self)
Signals all waiting threads that the cursor has advanced.
Auto Trait Implementations§
impl !Freeze for BlockingWaitStrategy
impl RefUnwindSafe for BlockingWaitStrategy
impl Send for BlockingWaitStrategy
impl Sync for BlockingWaitStrategy
impl Unpin for BlockingWaitStrategy
impl UnsafeUnpin for BlockingWaitStrategy
impl UnwindSafe for BlockingWaitStrategy
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