[][src]Struct arcon::prelude::lookup::gc::UpdateStrategy

pub struct UpdateStrategy { /* fields omitted */ }

Defines an interval update strategy.

Methods

impl UpdateStrategy[src]

pub fn new(
    curr: u64,
    min: u64,
    max: u64,
    incr: u64,
    decr: u64,
    algo: FeedbackAlgorithm
) -> UpdateStrategy
[src]

pub fn curr(&self) -> u64[src]

pub fn incr(&mut self) -> u64[src]

Increments the current value, clamping it at the configured maximum. The updated value is returned.

pub fn decr(&mut self) -> u64[src]

Decrements the current value, clamping it at the configured minimum. The updated value is returned.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Deserialisable<T> for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]