Interface RAtomicDoubleReactive

    • Method Detail

      • compareAndSet

        org.reactivestreams.Publisher<Boolean> compareAndSet​(double expect,
                                                             double update)
        Atomically sets the value to the given updated value only if the current value == the expected value.
        Parameters:
        expect - the expected value
        update - the new value
        Returns:
        true if successful; or false if the actual value was not equal to the expected value.
      • addAndGet

        org.reactivestreams.Publisher<Double> addAndGet​(double delta)
        Atomically adds the given value to the current value.
        Parameters:
        delta - the value to add
        Returns:
        the updated value
      • decrementAndGet

        org.reactivestreams.Publisher<Double> decrementAndGet()
        Atomically decrements the current value by one.
        Returns:
        the updated value
      • get

        org.reactivestreams.Publisher<Double> get()
        Returns current value.
        Returns:
        current value
      • getAndDelete

        org.reactivestreams.Publisher<Double> getAndDelete()
        Returns and deletes object
        Returns:
        the current value
      • getAndAdd

        org.reactivestreams.Publisher<Double> getAndAdd​(double delta)
        Atomically adds the given value to the current value.
        Parameters:
        delta - the value to add
        Returns:
        the updated value
      • getAndSet

        org.reactivestreams.Publisher<Double> getAndSet​(double newValue)
        Atomically sets the given value and returns the old value.
        Parameters:
        newValue - the new value
        Returns:
        the old value
      • incrementAndGet

        org.reactivestreams.Publisher<Double> incrementAndGet()
        Atomically increments the current value by one.
        Returns:
        the updated value
      • getAndIncrement

        org.reactivestreams.Publisher<Double> getAndIncrement()
        Atomically increments the current value by one.
        Returns:
        the old value
      • getAndDecrement

        org.reactivestreams.Publisher<Double> getAndDecrement()
        Atomically decrements by one the current value.
        Returns:
        the previous value
      • set

        org.reactivestreams.Publisher<Void> set​(double newValue)
        Atomically sets the given value.
        Parameters:
        newValue - the new value
        Returns:
        void