Interface LeveldbStore
- All Superinterfaces:
Actor,ActorLogging,AsyncRecovery,CompactionSegmentManagement,LeveldbCompaction,LeveldbIdMapping,LeveldbRecovery,WriteJournalBase
- All Known Implementing Classes:
SharedLeveldbStore
public interface LeveldbStore
extends Actor, WriteJournalBase, LeveldbIdMapping, LeveldbRecovery, LeveldbCompaction
INTERNAL API.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$Nested classes/interfaces inherited from interface org.apache.pekko.persistence.journal.leveldb.LeveldbCompaction
LeveldbCompaction.TryCompactLeveldb, LeveldbCompaction.TryCompactLeveldb$ -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllPersistenceIdsSubscriber(ActorRef subscriber) voidaddPersistenceIdSubscriber(ActorRef subscriber, String persistenceId) voidaddTagSubscriber(ActorRef subscriber, String tag) voidaddToMessageBatch(PersistentRepr persistent, scala.collection.immutable.Set<String> tags, org.iq80.leveldb.WriteBatch batch) voidallPersistenceIdsSubscribers_$eq(scala.collection.immutable.Set<ActorRef> x$1) scala.concurrent.Future<scala.runtime.BoxedUnit>asyncDeleteMessagesTo(String persistenceId, long toSequenceNr) scala.concurrent.Future<scala.collection.immutable.Seq<scala.util.Try<scala.runtime.BoxedUnit>>>asyncWriteMessages(scala.collection.immutable.Seq<AtomicWrite> messages) com.typesafe.config.Configconfig()booleanbooleanbooleanorg.iq80.leveldb.DBleveldb()voidleveldb_$eq(org.iq80.leveldb.DB x$1) org.iq80.leveldb.DBFactoryorg.iq80.leveldb.Optionsorg.iq80.leveldb.ReadOptionsorg.iq80.leveldb.ReadOptionsorg.iq80.leveldb.WriteOptionsbooleanvoidlongnextTagSequenceNr(String tag) voidnotifyPersistenceIdChange(String persistenceId) voidnotifyTagChange(String tag) voidorg$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$compactionIntervals_$eq(scala.collection.immutable.Map<String, Object> x$1) voidorg$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$config_$eq(com.typesafe.config.Config x$1) voidvoidorg$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbOptions_$eq(org.iq80.leveldb.Options x$1) voidorg$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbWriteOptions_$eq(org.iq80.leveldb.WriteOptions x$1) voidvoidorg$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$serialization_$eq(Serialization x$1) persistentFromBytes(byte[] a) byte[]voidpostStop()User overridable callback.com.typesafe.config.ConfigvoidpreStart()User overridable callback.voidremoveSubscriber(ActorRef subscriber) voidvoidGet the mapped numeric id for the specified persistent actorid.tagAsPersistenceId(String tag) inttagNumericId(String tag) voidtagSequenceNr_$eq(scala.collection.immutable.Map<String, Object> x$1) <R> RwithBatch(scala.Function1<org.iq80.leveldb.WriteBatch, R> body) <R> RwithIterator(scala.Function1<org.iq80.leveldb.DBIterator, R> body) 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, preRestart, receive, self, sender, supervisorStrategy, unhandledMethods inherited from interface org.apache.pekko.actor.ActorLogging
_log_$eq, logMethods inherited from interface org.apache.pekko.persistence.journal.leveldb.CompactionSegmentManagement
compactionInterval, compactionLimit, compactionSegment, isCompactionEnabled, isCompactionRequired, latestCompactionSegment, latestCompactionSegments_$eq, mustCompact, updateCompactionSegmentMethods inherited from interface org.apache.pekko.persistence.journal.leveldb.LeveldbCompaction
receiveCompactionInternal, tryCompactOnDeleteMethods inherited from interface org.apache.pekko.persistence.journal.leveldb.LeveldbIdMapping
allPersistenceIds, idMap_$eq, isNewPersistenceId, numericId, readIdMap, readIdMap, writeIdMappingMethods inherited from interface org.apache.pekko.persistence.journal.leveldb.LeveldbRecovery
asyncReadHighestSequenceNr, asyncReplayMessages, asyncReplayTaggedMessages, readHighestSequenceNr, replayMessages, replayTaggedMessagesMethods inherited from interface org.apache.pekko.persistence.journal.WriteJournalBase
adaptFromJournal, adaptToJournal, org$apache$pekko$persistence$journal$WriteJournalBase$_setter_$persistence_$eq, persistence, preparePersistentBatch
-
Method Details
-
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$config_$eq
void org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$config_$eq(com.typesafe.config.Config x$1) -
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$nativeLeveldb_$eq
void org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$nativeLeveldb_$eq(boolean x$1) -
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbOptions_$eq
void org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbOptions_$eq(org.iq80.leveldb.Options x$1) -
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbWriteOptions_$eq
void org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbWriteOptions_$eq(org.iq80.leveldb.WriteOptions x$1) -
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$leveldbDir_$eq
-
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$compactionIntervals_$eq
-
org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$serialization_$eq
void org$apache$pekko$persistence$journal$leveldb$LeveldbStore$_setter_$serialization_$eq(Serialization x$1) -
super$preStart
void super$preStart()Description copied from interface:LeveldbIdMappingGet 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.- Specified by:
super$preStartin interfaceLeveldbIdMapping
-
super$postStop
void super$postStop() -
prepareConfig
com.typesafe.config.Config prepareConfig() -
config
com.typesafe.config.Config config() -
nativeLeveldb
boolean nativeLeveldb() -
leveldbOptions
org.iq80.leveldb.Options leveldbOptions() -
leveldbReadOptions
org.iq80.leveldb.ReadOptions leveldbReadOptions() -
leveldbWriteOptions
org.iq80.leveldb.WriteOptions leveldbWriteOptions() -
leveldbDir
File leveldbDir() -
leveldb
org.iq80.leveldb.DB leveldb() -
leveldb_$eq
void leveldb_$eq(org.iq80.leveldb.DB x$1) -
compactionIntervals
- Specified by:
compactionIntervalsin interfaceCompactionSegmentManagement
-
allPersistenceIdsSubscribers_$eq
-
tagSequenceNr_$eq
-
leveldbFactory
org.iq80.leveldb.DBFactory leveldbFactory() -
serialization
Serialization serialization() -
asyncWriteMessages
scala.concurrent.Future<scala.collection.immutable.Seq<scala.util.Try<scala.runtime.BoxedUnit>>> asyncWriteMessages(scala.collection.immutable.Seq<AtomicWrite> messages) -
asyncDeleteMessagesTo
scala.concurrent.Future<scala.runtime.BoxedUnit> asyncDeleteMessagesTo(String persistenceId, long toSequenceNr) -
leveldbSnapshot
org.iq80.leveldb.ReadOptions leveldbSnapshot() -
withIterator
<R> R withIterator(scala.Function1<org.iq80.leveldb.DBIterator, R> body) -
withBatch
<R> R withBatch(scala.Function1<org.iq80.leveldb.WriteBatch, R> body) -
persistentToBytes
-
persistentFromBytes
-
addToMessageBatch
void addToMessageBatch(PersistentRepr persistent, scala.collection.immutable.Set<String> tags, org.iq80.leveldb.WriteBatch batch) -
nextTagSequenceNr
-
tagNumericId
-
tagAsPersistenceId
-
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.- Specified by:
preStartin interfaceActor- Specified by:
preStartin interfaceLeveldbIdMapping
-
postStop
void postStop()Description copied from interface:ActorUser overridable callback. Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation. -
hasPersistenceIdSubscribers
boolean hasPersistenceIdSubscribers() -
addPersistenceIdSubscriber
-
removeSubscriber
-
hasTagSubscribers
boolean hasTagSubscribers() -
addTagSubscriber
-
hasAllPersistenceIdsSubscribers
boolean hasAllPersistenceIdsSubscribers() -
addAllPersistenceIdsSubscriber
-
notifyPersistenceIdChange
-
notifyTagChange
-
newPersistenceIdAdded
- Specified by:
newPersistenceIdAddedin interfaceLeveldbIdMapping
-