public final class LmdbDurableStore extends java.lang.Object implements Actor, ActorLogging
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
LmdbDurableStore(com.typesafe.config.Config config) |
Modifier and Type | Method and Description |
---|---|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
active() |
protected abstract static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected abstract static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
static void |
akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1) |
static LoggingAdapter |
akka$actor$ActorLogging$$_log() |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
org.lmdbjava.Dbi<java.nio.ByteBuffer> |
db() |
void |
dbPut(OptionVal<org.lmdbjava.Txn<java.nio.ByteBuffer>> tx,
java.lang.String key,
ReplicatedData data) |
void |
ensureValueBufferSize(int size) |
org.lmdbjava.Env<java.nio.ByteBuffer> |
env() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
init() |
java.nio.ByteBuffer |
keyBuffer() |
static LoggingAdapter |
log() |
java.lang.String |
manifest() |
java.util.HashMap<java.lang.String,ReplicatedData> |
pending() |
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls
preStart() . |
void |
postStop()
User overridable callback.
|
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
static void |
preStart() |
static Props |
props(com.typesafe.config.Config config) |
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.
|
static ActorRef |
sender() |
Serialization |
serialization() |
SerializerWithStringManifest |
serializer() |
static SupervisorStrategy |
supervisorStrategy() |
static void |
unhandled(java.lang.Object message) |
java.nio.ByteBuffer |
valueBuffer() |
void |
writeBehind() |
scala.concurrent.duration.FiniteDuration |
writeBehindInterval() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, preStart, sender, supervisorStrategy, unhandled
log
public static Props props(com.typesafe.config.Config config)
public static final ActorRef sender()
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPostStop()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
public static SupervisorStrategy supervisorStrategy()
public static void preStart() throws java.lang.Exception
java.lang.Exception
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static void unhandled(java.lang.Object message)
protected abstract static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected abstract static void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public static LoggingAdapter akka$actor$ActorLogging$$_log()
public static void akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1)
public static LoggingAdapter log()
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 Serialization serialization()
public SerializerWithStringManifest serializer()
public java.lang.String manifest()
public scala.concurrent.duration.FiniteDuration writeBehindInterval()
public org.lmdbjava.Env<java.nio.ByteBuffer> env()
public org.lmdbjava.Dbi<java.nio.ByteBuffer> db()
public java.nio.ByteBuffer keyBuffer()
public java.nio.ByteBuffer valueBuffer()
public void ensureValueBufferSize(int size)
public java.util.HashMap<java.lang.String,ReplicatedData> pending()
public void postRestart(java.lang.Throwable reason)
Actor
preStart()
.postRestart
in interface Actor
reason
- the Throwable that caused the restart to happen
Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.public void postStop()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> init()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> active()
public void dbPut(OptionVal<org.lmdbjava.Txn<java.nio.ByteBuffer>> tx, java.lang.String key, ReplicatedData data)
public void writeBehind()