Struct resolved_ts::Endpoint[][src]

pub struct Endpoint<T, E: KvEngine, C> {
    store_meta: Arc<Mutex<StoreMeta>>,
    regions: HashMap<u64, ObserveRegion>,
    scanner_pool: ScannerPool<T, E>,
    scheduler: Scheduler<Task<E::Snapshot>>,
    sinker: C,
    advance_worker: AdvanceTsWorker<T, E>,
    _phantom: PhantomData<(T, E)>,
}

Fields

store_meta: Arc<Mutex<StoreMeta>>regions: HashMap<u64, ObserveRegion>scanner_pool: ScannerPool<T, E>scheduler: Scheduler<Task<E::Snapshot>>sinker: Cadvance_worker: AdvanceTsWorker<T, E>_phantom: PhantomData<(T, E)>

Implementations

impl<T, E, C> Endpoint<T, E, C> where
    T: 'static + RaftStoreRouter<E>,
    E: KvEngine,
    C: CmdSinker<E::Snapshot>, 
[src]

pub fn new(
    cfg: &CdcConfig,
    scheduler: Scheduler<Task<E::Snapshot>>,
    raft_router: T,
    store_meta: Arc<Mutex<StoreMeta>>,
    pd_client: Arc<dyn PdClient>,
    concurrency_manager: ConcurrencyManager,
    env: Arc<Environment>,
    security_mgr: Arc<SecurityManager>,
    sinker: C
) -> Self
[src]

fn register_region(&mut self, region: Region)[src]

fn build_scan_task(
    &self,
    region: Region,
    observe_handle: ObserveHandle,
    cancelled: Arc<AtomicBool>
) -> ScanTask
[src]

fn deregister_region(&mut self, region_id: u64)[src]

fn region_destroyed(&mut self, region: Region)[src]

fn region_role_changed(&mut self, region: Region, role: StateRole)[src]

fn region_error(
    &mut self,
    region_id: u64,
    observe_id: ObserveID,
    error: ErrorHeader
)
[src]

fn advance_resolved_ts(&mut self, regions: Vec<u64>, ts: TimeStamp)[src]

fn handle_change_log(
    &mut self,
    cmd_batch: Vec<CmdBatch>,
    snapshot: Option<RegionSnapshot<E::Snapshot>>
)
[src]

fn handle_scan_locks(
    &mut self,
    region_id: u64,
    observe_id: ObserveID,
    entries: Vec<ScanEntry>,
    apply_index: u64
)
[src]

fn register_advance_event(&self)[src]

Trait Implementations

impl<T, E, C> Runnable for Endpoint<T, E, C> where
    T: 'static + RaftStoreRouter<E>,
    E: KvEngine,
    C: CmdSinker<E::Snapshot>, 
[src]

type Task = Task<E::Snapshot>

Auto Trait Implementations

impl<T, E, C> !RefUnwindSafe for Endpoint<T, E, C>

impl<T, E, C> Send for Endpoint<T, E, C> where
    C: Send,
    T: Send

impl<T, E, C> Sync for Endpoint<T, E, C> where
    C: Sync,
    T: Sync

impl<T, E, C> Unpin for Endpoint<T, E, C> where
    C: Unpin,
    T: Unpin

impl<T, E, C> !UnwindSafe for Endpoint<T, E, C>

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]