Interface StateSnapshotTransformer<T>

Type Parameters:
T - type of state
All Known Subinterfaces:
StateSnapshotTransformer.CollectionStateSnapshotTransformer<T>
All Known Implementing Classes:
StateSnapshotTransformers.ListStateSnapshotTransformer, StateSnapshotTransformers.MapStateSnapshotTransformer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @NotThreadSafe public interface StateSnapshotTransformer<T>
Transformer of state values which are included or skipped in the snapshot.

This transformer can be applied to state values to decide which entries should be included into the snapshot. The included entries can be optionally modified before.

Unless specified differently, the transformer should be applied per entry for collection types of state, like list or map.

  • Method Details

    • filterOrTransform

      @Nullable T filterOrTransform(@Nullable T value)
      Transform or filter out state values which are included or skipped in the snapshot.
      Parameters:
      value - non-serialized form of value
      Returns:
      value to snapshot or null which means the entry is not included