Interface DrivenValue<T>

    • Method Detail

      • startup

        void startup()
        Lifecycle hook to start up the driven value
      • shutdown

        void shutdown()
        Lifecycle hook to shut down the driven value
      • isReady

        boolean isReady()
        Returns:
        true if the driven value is ready to fetch
      • isDirty

        boolean isDirty()
        Returns:
        true if the driven value has changed since the last time it was fetched
      • getAndClear

        @Nonnull
        java.util.Optional<T> getAndClear()
        Fetch the current driven value
        Returns:
        An Optional containing the current driven value, if present, or an empty Optional if the driven value is null / not present.