public class ReplayFilter extends java.lang.Object implements Actor, ActorLogging
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplayFilter.Disabled$ |
static class |
ReplayFilter.Fail$ |
static interface |
ReplayFilter.Mode |
static class |
ReplayFilter.RepairByDiscardOld$ |
static class |
ReplayFilter.Warn$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$| Constructor and Description |
|---|
ReplayFilter(ActorRef persistentActor,
ReplayFilter.Mode mode,
int windowSize,
int maxOldWriters) |
ReplayFilter(ActorRef persistentActor,
ReplayFilter.Mode mode,
int windowSize,
int maxOldWriters,
boolean debugEnabled) |
| Modifier and Type | Method and Description |
|---|---|
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) |
java.util.LinkedList<JournalProtocol.ReplayedMessage> |
buffer() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
void |
fail(java.lang.IllegalStateException cause) |
static LoggingAdapter |
log() |
void |
logIssue(java.lang.String errMsg) |
scala.collection.mutable.LinkedHashSet<java.lang.String> |
oldWriters() |
static void |
postRestart(java.lang.Throwable reason) |
static void |
postStop() |
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
static void |
preStart() |
static Props |
props(ActorRef persistentActor,
ReplayFilter.Mode mode,
int windowSize,
int maxOldWriters) |
static Props |
props(ActorRef persistentActor,
ReplayFilter.Mode mode,
int windowSize,
int maxOldWriters,
boolean debugEnabled) |
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.
|
void |
sendBuffered() |
static ActorRef |
sender() |
long |
seqNo() |
static SupervisorStrategy |
supervisorStrategy() |
static void |
unhandled(java.lang.Object message) |
java.lang.String |
writerUuid() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandledlogpublic ReplayFilter(ActorRef persistentActor, ReplayFilter.Mode mode, int windowSize, int maxOldWriters, boolean debugEnabled)
public ReplayFilter(ActorRef persistentActor, ReplayFilter.Mode mode, int windowSize, int maxOldWriters)
public static Props props(ActorRef persistentActor, ReplayFilter.Mode mode, int windowSize, int maxOldWriters, boolean debugEnabled)
public static Props props(ActorRef persistentActor, ReplayFilter.Mode mode, int windowSize, int maxOldWriters)
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.Exceptionpublic static void postStop()
throws java.lang.Exception
java.lang.Exceptionpublic static void preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
throws java.lang.Exception
java.lang.Exceptionpublic static void postRestart(java.lang.Throwable reason)
throws java.lang.Exception
java.lang.Exceptionpublic 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()
Actorforward.
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()
Actorself ! message
public java.util.LinkedList<JournalProtocol.ReplayedMessage> buffer()
public scala.collection.mutable.LinkedHashSet<java.lang.String> oldWriters()
public java.lang.String writerUuid()
public long seqNo()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actorpublic void sendBuffered()
public void logIssue(java.lang.String errMsg)
public void fail(java.lang.IllegalStateException cause)