Interface Replayable.Controller

All Superinterfaces:
Source
Enclosing interface:
Replayable

public static interface Replayable.Controller
extends Source
A controller used to replay a source. Controller should be used as a source by adding sinks on it. When sinks are set, a call to replay() send events describing the current state of the original source to sinks.
  • Method Details

    • replay

      void replay()
      Replay events describing the current state of the object being built by the source.
    • replay

      void replay​(String sourceId)
      Same as #replay(Sink) but you can set the id of the source sent in events.
      Parameters:
      sourceId - id of the event source