Class DispatchHandlers

    • Constructor Detail

      • DispatchHandlers

        public DispatchHandlers()
    • Method Detail

      • handle

        public <D,​S,​E extends EventMono<E> handle​(DispatchContext<D,​S> context)
        Process a Dispatch object wrapped with its context to potentially obtain an Event.
        Specified by:
        handle in interface DispatchEventMapper
        Type Parameters:
        D - the Dispatch type
        S - the old state type, if applicable
        E - the resulting Event type
        Parameters:
        context - the DispatchContext used with this Dispatch object
        Returns:
        an Event mapped from the given Dispatch object, or null if no Event is produced.