akka.persistence.journal.leveldb
Interface LeveldbIdMapping

All Superinterfaces:
Actor
All Known Subinterfaces:
LeveldbStore
All Known Implementing Classes:
LeveldbJournal, SharedLeveldbStore

public interface LeveldbIdMapping
extends Actor

INTERNAL API.

LevelDB backed persistent mapping of String-based persistent actor and channel ids to numeric ids.


Nested Class Summary
 
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$
 
Method Summary
 scala.collection.immutable.Map<java.lang.String,java.lang.Object> idMap()
           
 int idOffset()
           
 int numericId(java.lang.String id)
          Get the mapped numeric id for the specified persistent actor or channel id.
 void preStart()
          User overridable callback.
 scala.collection.immutable.Map<java.lang.String,java.lang.Object> readIdMap()
           
 scala.collection.immutable.Map<java.lang.String,java.lang.Object> readIdMap(scala.collection.immutable.Map<java.lang.String,java.lang.Object> pathMap, org.iq80.leveldb.DBIterator iter)
           
 int writeIdMapping(java.lang.String id, int numericId)
           
 
Methods inherited from interface akka.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, receive, self, sender, supervisorStrategy, unhandled
 

Method Detail

idOffset

int idOffset()

idMap

scala.collection.immutable.Map<java.lang.String,java.lang.Object> idMap()

numericId

int numericId(java.lang.String id)
Get the mapped numeric id for the specified persistent actor or channel id. Creates and stores a new mapping if necessary.

Parameters:
id - (undocumented)
Returns:
(undocumented)

readIdMap

scala.collection.immutable.Map<java.lang.String,java.lang.Object> readIdMap()

readIdMap

scala.collection.immutable.Map<java.lang.String,java.lang.Object> readIdMap(scala.collection.immutable.Map<java.lang.String,java.lang.Object> pathMap,
                                                                            org.iq80.leveldb.DBIterator iter)

writeIdMapping

int writeIdMapping(java.lang.String id,
                   int numericId)

preStart

void preStart()
Description copied from interface: Actor
User overridable callback.

Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.

Specified by:
preStart in interface Actor