pub struct ContinuousQuery { /* private fields */ }Implementations§
Source§impl ContinuousQuery
impl ContinuousQuery
pub fn new( query: Arc<Query>, match_path: Arc<MatchPath>, expression_evaluator: Arc<ExpressionEvaluator>, element_index: Arc<dyn ElementIndex>, path_solver: Arc<MatchPathSolver>, part_evaluator: Arc<QueryPartEvaluator>, future_queue: Arc<dyn FutureQueue>, source_pipelines: SourceMiddlewarePipelineCollection, session_control: Arc<dyn SessionControl>, ) -> Self
pub async fn process_source_change( &self, change: SourceChange, ) -> Result<Vec<QueryPartEvaluationContext>, EvaluationError>
Sourcepub async fn process_due_futures(
&self,
) -> Result<Option<DueFutureResult>, EvaluationError>
pub async fn process_due_futures( &self, ) -> Result<Option<DueFutureResult>, EvaluationError>
Atomically pop a due future from the queue and process it within a single session.
Returns Ok(None) when the queue is empty (stale peek).
Returns Ok(Some(DueFutureResult)) with results and the original source_id.
Pop happens inside the session → atomic with all downstream index writes. If a crash occurs before commit, the pop rolls back and the item stays in the queue.
Sourcepub fn future_queue(&self) -> Arc<dyn FutureQueue>
pub fn future_queue(&self) -> Arc<dyn FutureQueue>
Expose the ContinuousQuery’s future queue for external polling.
pub async fn set_future_consumer(&self, consumer: Arc<dyn FutureQueueConsumer>)
pub async fn terminate_future_consumer(&self)
pub fn get_query(&self) -> Arc<Query>
Trait Implementations§
Source§impl Debug for ContinuousQuery
impl Debug for ContinuousQuery
Auto Trait Implementations§
impl !Freeze for ContinuousQuery
impl !RefUnwindSafe for ContinuousQuery
impl Send for ContinuousQuery
impl Sync for ContinuousQuery
impl Unpin for ContinuousQuery
impl UnsafeUnpin for ContinuousQuery
impl !UnwindSafe for ContinuousQuery
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