Struct resolved_ts::Endpoint [−][src]
Fields
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)>
Implementations
impl<T, E, C> Endpoint<T, E, C> where
T: 'static + RaftStoreRouter<E>,
E: KvEngine,
C: CmdSinker<E::Snapshot>,
[src]
T: 'static + RaftStoreRouter<E>,
E: KvEngine,
C: CmdSinker<E::Snapshot>,
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]
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
fn register_region(&mut self, region: Region)
[src]
fn build_scan_task(
&self,
region: Region,
observe_handle: ObserveHandle,
cancelled: Arc<AtomicBool>
) -> ScanTask
[src]
&self,
region: Region,
observe_handle: ObserveHandle,
cancelled: Arc<AtomicBool>
) -> ScanTask
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]
&mut self,
region_id: u64,
observe_id: ObserveID,
error: ErrorHeader
)
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]
&mut self,
cmd_batch: Vec<CmdBatch>,
snapshot: Option<RegionSnapshot<E::Snapshot>>
)
fn handle_scan_locks(
&mut self,
region_id: u64,
observe_id: ObserveID,
entries: Vec<ScanEntry>,
apply_index: u64
)
[src]
&mut self,
region_id: u64,
observe_id: ObserveID,
entries: Vec<ScanEntry>,
apply_index: u64
)
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]
T: 'static + RaftStoreRouter<E>,
E: KvEngine,
C: CmdSinker<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,
C: Send,
T: Send,
impl<T, E, C> Sync for Endpoint<T, E, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<T, E, C> Unpin for Endpoint<T, E, C> where
C: Unpin,
T: Unpin,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,