He-Pin opened a new pull request, #3434: URL: https://github.com/apache/pekko/pull/3434
### Motivation The scaladsl `DurableStateBehavior` already supports `Effect.delete()` but the javadsl was missing it (marked with a FIXME comment). Java users had no way to delete persisted state from a `DurableStateBehavior`. ### Modification - Add `delete()` method to javadsl `EffectFactories`, delegating to the existing internal `Delete()` effect. - Add a directional test exercising `Effect().delete()` from Java with a deterministic reply-after-delete pattern. ### Result Java DSL users can now call `Effect().delete()` in their `DurableStateBehavior` command handlers, achieving API parity with the Scala DSL. ### Tests - `sbt "persistence-typed-tests / Test / testOnly org.apache.pekko.persistence.typed.state.javadsl.RuntimeDurableStateStoreTest"` ### References Refs akka/akka-core#32027 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
