public class SharedLeveldbStore extends java.lang.Object implements LeveldbStore
SharedLeveldbJournal.setStore
. The
shared LevelDB store is for testing only.Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
SharedLeveldbStore() |
SharedLeveldbStore(com.typesafe.config.Config cfg) |
Modifier and Type | Method and Description |
---|---|
com.typesafe.config.Config |
config() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
org.iq80.leveldb.DB |
leveldb() |
java.io.File |
leveldbDir() |
org.iq80.leveldb.Options |
leveldbOptions() |
org.iq80.leveldb.WriteOptions |
leveldbWriteOptions() |
boolean |
nativeLeveldb() |
Persistence |
persistence() |
com.typesafe.config.Config |
prepareConfig() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
Serialization |
serialization() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAllPersistenceIdsSubscriber, addPersistenceIdSubscriber, addTagSubscriber, addToMessageBatch, asyncDeleteMessagesTo, asyncWriteMessages, hasAllPersistenceIdsSubscribers, hasPersistenceIdSubscribers, hasTagSubscribers, leveldbFactory, leveldbReadOptions, leveldbSnapshot, newPersistenceIdAdded, nextTagSequenceNr, notifyPersistenceIdChange, notifyTagChange, persistentFromBytes, persistentToBytes, postStop, preStart, removeSubscriber, tagAsPersistenceId, tagNumericId, withBatch, withIterator
adaptFromJournal, adaptToJournal, preparePersistentBatch
allPersistenceIds, isNewPersistenceId, numericId, readIdMap, readIdMap, writeIdMapping
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, preRestart, sender, supervisorStrategy, unhandled
asyncReadHighestSequenceNr, asyncReplayMessages, asyncReplayTaggedMessages, readHighestSequenceNr, replayMessages, replayTaggedMessages
public SharedLeveldbStore(com.typesafe.config.Config cfg)
public SharedLeveldbStore()
public com.typesafe.config.Config config()
config
in interface LeveldbStore
public boolean nativeLeveldb()
nativeLeveldb
in interface LeveldbStore
public org.iq80.leveldb.Options leveldbOptions()
leveldbOptions
in interface LeveldbStore
public org.iq80.leveldb.WriteOptions leveldbWriteOptions()
leveldbWriteOptions
in interface LeveldbStore
public java.io.File leveldbDir()
leveldbDir
in interface LeveldbStore
public org.iq80.leveldb.DB leveldb()
leveldb
in interface LeveldbStore
public Serialization serialization()
serialization
in interface LeveldbStore
public Persistence persistence()
persistence
in interface WriteJournalBase
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public com.typesafe.config.Config prepareConfig()
prepareConfig
in interface LeveldbStore