Interface LeveldbIdMapping
- All Superinterfaces:
Actor
- All Known Subinterfaces:
LeveldbStore
- All Known Implementing Classes:
SharedLeveldbStore
INTERNAL API.
LevelDB backed persistent mapping of String-based persistent actor ids to numeric ids.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$ -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.Set<String>voidbooleanvoidintGet the mapped numeric id for the specified persistent actorid.voidpreStart()User overridable callback.voidGet the mapped numeric id for the specified persistent actorid.intwriteIdMapping(String id, int numericId) Methods inherited from interface org.apache.pekko.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, receive, self, sender, supervisorStrategy, unhandled
-
Method Details
-
allPersistenceIds
scala.collection.immutable.Set<String> allPersistenceIds() -
idMap_$eq
-
isNewPersistenceId
-
newPersistenceIdAdded
-
numericId
Get the mapped numeric id for the specified persistent actorid. Creates and stores a new mapping if necessary.This method is thread safe and it is allowed to call it from another thread than the actor's thread. That is necessary for Future composition, e.g.
asyncReadHighestSequenceNrfollowed byasyncReplayMessages. -
preStart
void preStart()Description copied from interface:ActorUser overridable callback. Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation. -
readIdMap
-
readIdMap
-
super$preStart
void super$preStart()Get the mapped numeric id for the specified persistent actorid. Creates and stores a new mapping if necessary.This method is thread safe and it is allowed to call it from another thread than the actor's thread. That is necessary for Future composition, e.g.
asyncReadHighestSequenceNrfollowed byasyncReplayMessages. -
writeIdMapping
-