!per #15436 make persistenceId abstract in NEW classes
(cherry picked from commit de3249f7f4b859c3caa232e579d9a3bae7406803) Conflicts: akka-samples/akka-sample-persistence-scala/src/main/scala/sample/persistence/PersistentActorExample.scala
This commit is contained in:
parent
43952af7ea
commit
b1d1d87111
24 changed files with 182 additions and 193 deletions
|
|
@ -111,6 +111,13 @@ public class ClusterShardingTest {
|
|||
}
|
||||
|
||||
int count = 0;
|
||||
|
||||
// getSelf().path().parent().name() is the type name (utf-8 URL-encoded)
|
||||
// getSelf().path().name() is the entry identifier (utf-8 URL-encoded)
|
||||
@Override
|
||||
public String persistenceId() {
|
||||
return getSelf().path().parent().name() + "-" + getSelf().path().name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preStart() throws Exception {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue