public abstract class AbstractEventsByTagPublisher extends java.lang.Object implements ActorPublisher<EventEnvelope>, DeliveryBuffer<EventEnvelope>, ActorLogging
ActorPublisher.Internal$Actor.emptyBehavior$, Actor.ignoringBehavior$| Constructor and Description |
|---|
AbstractEventsByTagPublisher(java.lang.String tag,
long fromOffset,
int maxBufSize,
java.lang.String writeJournalPluginId) |
| Modifier and Type | Method and Description |
|---|---|
scala.collection.immutable.Vector<EventEnvelope> |
buf() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
long |
currOffset() |
long |
fromOffset() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
idle() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
init() |
ActorRef |
journal() |
int |
maxBufSize() |
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.
|
abstract void |
receiveIdleRequest() |
abstract void |
receiveInitialRequest() |
abstract void |
receiveRecoverySuccess(long highestSeqNr) |
void |
replay() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
replaying(int limit) |
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
java.lang.String |
tag() |
boolean |
timeForReplay() |
abstract long |
toOffset() |
java.lang.String |
writeJournalPluginId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, cancelSelf, isActive, isCanceled, isCompleted, isErrorEmitted, onComplete, onCompleteThenStop, onError, onErrorThenStop, onNext, subscriptionTimeout, totalDemandpostRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandleddeliverBuflogpublic AbstractEventsByTagPublisher(java.lang.String tag,
long fromOffset,
int maxBufSize,
java.lang.String writeJournalPluginId)
public scala.collection.immutable.Vector<EventEnvelope> buf()
buf in interface DeliveryBuffer<EventEnvelope>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.lang.String tag()
public long fromOffset()
public int maxBufSize()
public java.lang.String writeJournalPluginId()
public ActorRef journal()
public long currOffset()
public abstract long toOffset()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actorpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> init()
public abstract void receiveInitialRequest()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> idle()
public abstract void receiveIdleRequest()
public boolean timeForReplay()
public void replay()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> replaying(int limit)
public abstract void receiveRecoverySuccess(long highestSeqNr)