Struct resolved_ts::advance::AdvanceTsWorker[][src]

pub struct AdvanceTsWorker<T, E: KvEngine> {
    store_meta: Arc<Mutex<StoreMeta>>,
    pd_client: Arc<dyn PdClient>,
    timer: SteadyTimer,
    worker: Runtime,
    raft_router: T,
    advance_ts_interval: Duration,
    scheduler: Scheduler<Task<E::Snapshot>>,
    concurrency_manager: ConcurrencyManager,
    hibernate_regions_compatible: bool,
    tikv_clients: Arc<Mutex<HashMap<u64, TikvClient>>>,
    env: Arc<Environment>,
    security_mgr: Arc<SecurityManager>,
}

Fields

store_meta: Arc<Mutex<StoreMeta>>pd_client: Arc<dyn PdClient>timer: SteadyTimerworker: Runtimeraft_router: Tadvance_ts_interval: Durationscheduler: Scheduler<Task<E::Snapshot>>concurrency_manager: ConcurrencyManager

The concurrency manager for transactions. It’s needed for CDC to check locks when calculating resolved_ts.

hibernate_regions_compatible: booltikv_clients: Arc<Mutex<HashMap<u64, TikvClient>>>env: Arc<Environment>security_mgr: Arc<SecurityManager>

Implementations

impl<T, E: KvEngine> AdvanceTsWorker<T, E>[src]

pub fn new(
    pd_client: Arc<dyn PdClient>,
    scheduler: Scheduler<Task<E::Snapshot>>,
    raft_router: T,
    store_meta: Arc<Mutex<StoreMeta>>,
    concurrency_manager: ConcurrencyManager,
    env: Arc<Environment>,
    security_mgr: Arc<SecurityManager>,
    advance_ts_interval: Duration,
    hibernate_regions_compatible: bool
) -> Self
[src]

impl<T: 'static + RaftStoreRouter<E>, E: KvEngine> AdvanceTsWorker<T, E>[src]

pub fn register_advance_event(&self, regions: Vec<u64>)[src]

async fn region_resolved_ts_raft(
    regions: Vec<u64>,
    raft_router: T,
    min_ts: TimeStamp
) -> Vec<u64>
[src]

async fn region_resolved_ts_store(
    regions: Vec<u64>,
    store_meta: Arc<Mutex<StoreMeta>>,
    pd_client: Arc<dyn PdClient>,
    security_mgr: Arc<SecurityManager>,
    env: Arc<Environment>,
    cdc_clients: Arc<Mutex<HashMap<u64, TikvClient>>>,
    min_ts: TimeStamp
) -> Vec<u64>
[src]

Auto Trait Implementations

impl<T, E> !RefUnwindSafe for AdvanceTsWorker<T, E>

impl<T, E> Send for AdvanceTsWorker<T, E> where
    T: Send

impl<T, E> Sync for AdvanceTsWorker<T, E> where
    T: Sync

impl<T, E> Unpin for AdvanceTsWorker<T, E> where
    T: Unpin

impl<T, E> !UnwindSafe for AdvanceTsWorker<T, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]