WithMarkStaleInterface
interface WithMarkStaleInterface (View source)
Additional marker interface to add to a {ProjectionInterface}.
If the Projection needs to be notified that a catchup is about to happen, you can additionally implement this interface. This is useful f.e. to disable runtime caches in the ProjectionState.
Methods
void
markStale()
Triggered directly before {ProjectionCatchUpTriggerInterface::triggerCatchUp()} is called; by the {EventPersister::publishEvents()} method.
Details
void
markStale()
Triggered directly before {ProjectionCatchUpTriggerInterface::triggerCatchUp()} is called; by the {EventPersister::publishEvents()} method.
Can be f.e. used to disable caches inside the Projection State.