-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.conf
39 lines (34 loc) · 1.09 KB
/
application.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
akka {
persistence {
snapshot-store {
plugin = "akka.persistence.snapshot-store.local"
local.dir = "target/persistence-snapshots"
}
journal {
plugin = "akka.persistence.journal.leveldb"
leveldb.dir = "target/persistence-journal"
# DO NOT USE THIS IN PRODUCTION !!!
#leveldb.native = false
}
}
actor {
## TODO 1: why I cannot turn it off?
#allow-java-serialization = on # off
#serialize-messages = on
## TODO 2: check if that variant is preferable
#allow-java-serialization = on # off
#serialize-messages = on
serialize-creators = on
enable-additional-serialization-bindings = on
serializers {
#java = "akka.serialization.JavaSerializer"
json = "com.github.daggerok.akka.persistence.MyJsonSerializer"
}
serialization-bindings {
"com.github.daggerok.akka.persistence.Cmd" = json
"com.github.daggerok.akka.persistence.Evt" = json
"com.github.daggerok.akka.persistence.ExampleState" = json
"com.github.daggerok.akka.persistence.SnapshotExample$ExampleState" = json
}
}
}