Struct cdc::endpoint::Endpoint [−][src]
Fields
capture_regions: HashMap<u64, Delegate>
connections: HashMap<ConnID, Conn>
scheduler: Scheduler<Task>
raft_router: T
observer: CdcObserver
pd_client: Arc<dyn PdClient>
timer: SteadyTimer
min_ts_interval: Duration
tso_worker: Runtime
store_meta: Arc<Mutex<StoreMeta>>
concurrency_manager: ConcurrencyManager
The concurrency manager for transactions. It’s needed for CDC to check locks when calculating resolved_ts.
workers: Runtime
scan_speed_limter: Limiter
max_scan_batch_bytes: usize
max_scan_batch_size: usize
min_resolved_ts: TimeStamp
min_ts_region_id: u64
old_value_cache: OldValueCache
hibernate_regions_compatible: bool
resolved_region_count: usize
unresolved_region_count: usize
tikv_clients: Arc<Mutex<HashMap<u64, TikvClient>>>
env: Arc<Environment>
security_mgr: Arc<SecurityManager>
Implementations
impl<T: 'static + RaftStoreRouter<RocksEngine>> Endpoint<T>
[src]
pub fn new(
cfg: &CdcConfig,
pd_client: Arc<dyn PdClient>,
scheduler: Scheduler<Task>,
raft_router: T,
observer: CdcObserver,
store_meta: Arc<Mutex<StoreMeta>>,
concurrency_manager: ConcurrencyManager,
env: Arc<Environment>,
security_mgr: Arc<SecurityManager>
) -> Endpoint<T>
[src]
cfg: &CdcConfig,
pd_client: Arc<dyn PdClient>,
scheduler: Scheduler<Task>,
raft_router: T,
observer: CdcObserver,
store_meta: Arc<Mutex<StoreMeta>>,
concurrency_manager: ConcurrencyManager,
env: Arc<Environment>,
security_mgr: Arc<SecurityManager>
) -> Endpoint<T>
pub fn set_min_ts_interval(&mut self, dur: Duration)
[src]
pub fn set_max_scan_batch_size(&mut self, max_scan_batch_size: usize)
[src]
fn on_deregister(&mut self, deregister: Deregister)
[src]
pub fn on_register(
&mut self,
request: ChangeDataRequest,
downstream: Downstream,
conn_id: ConnID,
version: Version
)
[src]
&mut self,
request: ChangeDataRequest,
downstream: Downstream,
conn_id: ConnID,
version: Version
)
pub fn on_multi_batch(
&mut self,
multi: Vec<CmdBatch>,
old_value_cb: Box<dyn Fn(Key, TimeStamp, &mut OldValueCache) -> (Option<Vec<u8>>, Option<Statistics>) + Send>
)
[src]
&mut self,
multi: Vec<CmdBatch>,
old_value_cb: Box<dyn Fn(Key, TimeStamp, &mut OldValueCache) -> (Option<Vec<u8>>, Option<Statistics>) + Send>
)
fn on_region_ready(
&mut self,
observe_id: ObserveID,
resolver: Resolver,
region: Region
)
[src]
&mut self,
observe_id: ObserveID,
resolver: Resolver,
region: Region
)
fn on_min_ts(&mut self, regions: Vec<u64>, min_ts: TimeStamp)
[src]
fn broadcast_resolved_ts(&self, regions: Vec<u64>)
[src]
fn broadcast_resolved_ts_compact(
&self,
region_id: u64,
resolved_ts: u64,
conn: &Conn
)
[src]
&self,
region_id: u64,
resolved_ts: u64,
conn: &Conn
)
fn register_min_ts_event(&self)
[src]
async fn region_resolved_ts_raft(
regions: Vec<(u64, ObserveID)>,
scheduler: &Scheduler<Task>,
raft_router: T,
min_ts: TimeStamp
) -> Vec<u64>
[src]
regions: Vec<(u64, ObserveID)>,
scheduler: &Scheduler<Task>,
raft_router: T,
min_ts: TimeStamp
) -> Vec<u64>
async fn region_resolved_ts_store(
regions: Vec<(u64, ObserveID)>,
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]
regions: Vec<(u64, ObserveID)>,
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>
fn on_open_conn(&mut self, conn: Conn)
[src]
Trait Implementations
impl<T: 'static + RaftStoreRouter<RocksEngine>> Runnable for Endpoint<T>
[src]
type Task = Task
fn run(&mut self, task: Task)
[src]
pub fn on_tick(&mut self)
[src]
pub fn shutdown(&mut self)
[src]
impl<T: 'static + RaftStoreRouter<RocksEngine>> RunnableWithTimer for Endpoint<T>
[src]
fn on_timeout(&mut self)
[src]
fn get_interval(&self) -> Duration
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Endpoint<T>
impl<T> Send for Endpoint<T> where
T: Send,
T: Send,
impl<T> !Sync for Endpoint<T>
impl<T> Unpin for Endpoint<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Endpoint<T>
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>,