Interface ReactiveSubscriber<V>

Type Parameters:
V - The type of the state value.
All Known Subinterfaces:
ReactiveComponent<V>
All Known Implementing Classes:
MemoizedReactiveComputable, ReactiveItemProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReactiveSubscriber<V>
A subscriber to a reactive state.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called whenever value inside a reactive state changes
  • Method Details

    • onStateChange

      void onStateChange(@Nullable V state) throws ReactiveException
      Called whenever value inside a reactive state changes
      Parameters:
      state - The new state value.
      Throws:
      ReactiveException - If an error occurs while handling the state change.