Struct fluvio::metadata::store::ChangeListener [−]
listen for changes local store
Implementations
impl<S, C> ChangeListener<S, C> where
C: MetadataItem,
S: Spec,
C: MetadataItem,
S: Spec,
pub fn new(store: Arc<LocalStore<S, C>>) -> ChangeListener<S, C>
pub fn event_publisher(&self) -> &EventPublisher
pub fn has_change(&mut self) -> bool
check if there should be any changes this should be done before event listener to ensure no events are missed
pub fn load_last(&mut self)
sync change to current change
pub fn set_last_change(&mut self, updated_change: i64)
pub fn last_change(&self) -> i64
pub fn current_change(&self) -> i64
pub async fn listen(&'_ mut self)
pub async fn sync_changes(
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
find all changes derived from this listener
pub async fn sync_spec_changes(
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
find all spec related changes
pub async fn sync_status_changes(
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
all status related changes
pub async fn sync_meta_changes(
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
&'_ mut self
) -> EpochChanges<MetadataStoreObject<S, C>>
all meta related changes
pub async fn sync_changes_with_filter(
&'_ mut self,
filter: &'_ ChangeFlag
) -> EpochChanges<MetadataStoreObject<S, C>>
&'_ mut self,
filter: &'_ ChangeFlag
) -> EpochChanges<MetadataStoreObject<S, C>>
all meta related changes
Trait Implementations
impl<S, C> Debug for ChangeListener<S, C> where
C: MetadataItem,
S: Spec,
C: MetadataItem,
S: Spec,
Auto Trait Implementations
impl<S, C> !RefUnwindSafe for ChangeListener<S, C>
[src]
impl<S, C> Send for ChangeListener<S, C> where
C: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
[src]
C: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
impl<S, C> Sync for ChangeListener<S, C> where
C: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
[src]
C: Send + Sync,
S: Send + Sync,
<S as Spec>::IndexKey: Send + Sync,
<S as Spec>::Status: Send + Sync,
impl<S, C> Unpin for ChangeListener<S, C>
[src]
impl<S, C> !UnwindSafe for ChangeListener<S, C>
[src]
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<T> Erased for T
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> 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, 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<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,