Class RunnableWithContext

    • Field Detail

      • contextSnapshotConsumer

        protected final Consumer<ContextSnapshot> contextSnapshotConsumer
        The context snapshot consumer to provide a new snapshot to after the function is completed, may be null.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • consumer

        @Deprecated
        protected Optional<Consumer<ContextSnapshot>> consumer()
        Deprecated.
        The functional wrappers currently no longer use this method.
        Returns:
        An optional post-action consumer to receive a new context snapshot taken after the action.