Class View<S>

  • Type Parameters:
    S - The type of the state for this view.

    public abstract class View<S>
    extends Object
    • Constructor Detail

      • View

        public View()
    • Method Detail

      • updateContext

        protected final UpdateContext updateContext()
        Additional context and metadata for an update handler.

        It will throw an exception if accessed from constructor.

      • _internalSetUpdateContext

        public void _internalSetUpdateContext​(java.util.Optional<UpdateContext> context)
      • emptyState

        public abstract S emptyState()
        an empty state object or `null` to hand to the process method when an event for a previously unknown subject id is seen.