StatusObserver
Track status of a projection by implementing a StatusObserver
and install it using
Projection.withStatusObserver.
Attributes
- Source:
- StatusObserver.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Invoked as soon as the projected information is readable by a separate thread (e.g committed to database). It will not be invoked if the envelope is skipped or handling fails.
Invoked as soon as the projected information is readable by a separate thread (e.g committed to database). It will not be invoked if the envelope is skipped or handling fails.
Attributes
- Source:
- StatusObserver.scala
Called as soon as an envelop is ready to be processed. The envelope processing may not start immediately if grouping or batching are enabled.
Called as soon as an envelop is ready to be processed. The envelope processing may not start immediately if grouping or batching are enabled.
Attributes
- Source:
- StatusObserver.scala
Called when processing of an envelope failed. The invocation of this method is not guaranteed when the handler failure causes a stream failure (e.g. using a Flow-based handler or a recovery strategy that immediately fails).
Called when processing of an envelope failed. The invocation of this method is not guaranteed when the handler failure causes a stream failure (e.g. using a Flow-based handler or a recovery strategy that immediately fails).
From the recoveryStrategy
and keeping track how many times error
is called it's possible to derive
what next step will be; fail, skip, retry.
Attributes
- Source:
- StatusObserver.scala
Called when a projection failed.
Called when a projection failed.
The projection will be restarted unless the projection restart backoff settings
are configured with max-restarts
limit.
Attributes
- Source:
- StatusObserver.scala
Called when the corresponding offset has been stored. It might not be called for each envelope.
Called when the corresponding offset has been stored. It might not be called for each envelope.
Attributes
- Source:
- StatusObserver.scala
Called when a projection is started. Also called after the projection has been restarted.
Called when a projection is started. Also called after the projection has been restarted.
Attributes
- Source:
- StatusObserver.scala
Called when a projection is stopped. Also called before the projection is restarted.
Called when a projection is stopped. Also called before the projection is restarted.
Attributes
- Source:
- StatusObserver.scala