Class JournalPerfSpec.BenchActor
- java.lang.Object
- 
- akka.persistence.journal.JournalPerfSpec.BenchActor
 
- 
- All Implemented Interfaces:
- Actor,- ActorLogging,- Stash,- StashFactory,- StashSupport,- UnrestrictedStash,- RequiresMessageQueue<DequeBasedMessageQueueSemantics>,- Eventsourced,- PersistenceIdentity,- PersistenceRecovery,- PersistenceStash,- PersistentActor,- Snapshotter
 - Enclosing class:
- JournalPerfSpec
 
 public static class JournalPerfSpec.BenchActor extends java.lang.Object implements PersistentActor, ActorLogging 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface akka.actor.ActorActor.emptyBehavior$, Actor.ignoringBehavior$
 - 
Nested classes/interfaces inherited from interface akka.persistence.EventsourcedEventsourced.AsyncHandlerInvocation, Eventsourced.AsyncHandlerInvocation$, Eventsourced.PendingHandlerInvocation, Eventsourced.RecoveryTick, Eventsourced.RecoveryTick$, Eventsourced.StashingHandlerInvocation, Eventsourced.StashingHandlerInvocation$, Eventsourced.State
 
- 
 - 
Constructor SummaryConstructors Constructor Description BenchActor(java.lang.String persistenceId, ActorRef replyTo, int replyAfter)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidakka$actor$Actor$_setter_$context_$eq(ActorContext x$1)Scala API: Stores the context for this actor, including self, and sender.protected voidakka$actor$Actor$_setter_$self_$eq(ActorRef x$1)The 'self' field holds the ActorRef for this actor.protected voidakka$actor$StashSupport$_setter_$mailbox_$eq(DequeBasedMessageQueueSemantics x$1)ActorContextcontext()Scala API: Stores the context for this actor, including self, and sender.intcounter()voidcounter_$eq(int x$1)protected ActorRefjournal()java.lang.StringpersistenceId()Id of the persistent entity for which messages should be replayed.scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>receiveCommand()Command handler.scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>receiveRecover()Recovery handler that receives persisted events during recovery.ActorRefself()The 'self' field holds the ActorRef for this actor.protected ActorRefsnapshotStore()Snapshot store plugin actor.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface akka.actor.ActorpostRestart, preStart, sender, supervisorStrategy
 - 
Methods inherited from interface akka.actor.ActorLogging_log_$eq, log
 - 
Methods inherited from interface akka.persistence.Eventsourced_lastSequenceNr_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, batchAtomicWrite, changeState, currentCommand, currentState_$eq, deleteMessages, eventBatch_$eq, flushBatch, flushJournalBatch, getAndClearInstrumentationContext, instrumentationContexts_$eq, internalDefer, internalDeferAsync, internalDeleteMessagesBeforeSnapshot, internalPersist, internalPersistAll, internalPersistAllAsync, internalPersistAsync, journalBatch_$eq, lastSequenceNr, log, nextSequenceNr, onPersistFailure, onPersistRejected, onRecoveryFailure, onRecoveryFailureAndInstrumentation, onReplaySuccess, peekApplyHandler, pendingStashingPersistInvocations_$eq, recovering, recoveryFinished, recoveryRunning, recoveryStarted, requestRecoveryPermit, sendBatchedEventsToJournal, sequenceNr_$eq, setLastSequenceNr, snapshotSequenceNr, snapshotterId, startRecovery, stash, stashInternally, super$aroundPostRestart, super$aroundPostStop, super$aroundPreRestart, super$aroundPreStart, super$aroundReceive, super$stash, super$unhandled, unhandled, unstashAll, unstashInternally, updateLastSequenceNr, waitingRecoveryPermit, writeEventFailed, writeEventRejected, writeEventSucceeded, writeInProgress_$eq
 - 
Methods inherited from interface akka.persistence.PersistenceIdentityjournalPluginId, snapshotPluginId
 - 
Methods inherited from interface akka.persistence.PersistenceRecoveryrecovery
 - 
Methods inherited from interface akka.persistence.PersistenceStashinternalStashOverflowStrategy
 - 
Methods inherited from interface akka.persistence.PersistentActordefer, deferAsync, persist, persistAll, persistAllAsync, persistAsync, receive
 - 
Methods inherited from interface akka.persistence.SnapshotterdeleteSnapshot, deleteSnapshots, loadSnapshot, saveSnapshot
 - 
Methods inherited from interface akka.actor.StashFactorycreateStash
 - 
Methods inherited from interface akka.actor.StashSupportactorCell, clearStash, enqueueFirst, prepend, theStash_$eq, unstash, unstashAll
 - 
Methods inherited from interface akka.actor.UnrestrictedStashpostStop, preRestart, super$postStop, super$preRestart
 
- 
 
- 
- 
- 
Constructor Detail- 
BenchActorpublic BenchActor(java.lang.String persistenceId, ActorRef replyTo, int replyAfter)
 
- 
 - 
Method Detail- 
akka$actor$Actor$_setter_$context_$eqprotected void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) Description copied from interface:ActorScala API: Stores the context for this actor, including self, and sender. It is implicit to support operations such asforward.WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads! ActorContextis the Scala API.getContextreturns aAbstractActor.ActorContext, which is the Java API of the actor context.- Specified by:
- akka$actor$Actor$_setter_$context_$eqin interface- Actor
 
 - 
akka$actor$Actor$_setter_$self_$eqprotected final void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) Description copied from interface:ActorThe 'self' field holds the ActorRef for this actor. Can be used to send messages to itself:self ! message - Specified by:
- akka$actor$Actor$_setter_$self_$eqin interface- Actor
 
 - 
akka$actor$StashSupport$_setter_$mailbox_$eqprotected void akka$actor$StashSupport$_setter_$mailbox_$eq(DequeBasedMessageQueueSemantics x$1) - Specified by:
- akka$actor$StashSupport$_setter_$mailbox_$eqin interface- StashSupport
 
 - 
contextpublic ActorContext context() Description copied from interface:ActorScala API: Stores the context for this actor, including self, and sender. It is implicit to support operations such asforward.WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads! ActorContextis the Scala API.getContextreturns aAbstractActor.ActorContext, which is the Java API of the actor context.- Specified by:
- contextin interface- Actor
- Specified by:
- contextin interface- StashSupport
 
 - 
counterpublic int counter() 
 - 
counter_$eqpublic void counter_$eq(int x$1) 
 - 
journalprotected ActorRef journal() - Specified by:
- journalin interface- Eventsourced
 
 - 
persistenceIdpublic java.lang.String persistenceId() Description copied from interface:PersistenceIdentityId of the persistent entity for which messages should be replayed.- Specified by:
- persistenceIdin interface- PersistenceIdentity
 
 - 
receiveCommandpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receiveCommand() Description copied from interface:EventsourcedCommand handler. Typically validates commands against current state (and/or by communication with other actors). On successful validation, one or more events are derived from a command and these events are then persisted by callingpersist.- Specified by:
- receiveCommandin interface- Eventsourced
 
 - 
receiveRecoverpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receiveRecover() Description copied from interface:EventsourcedRecovery handler that receives persisted events during recovery. If a state snapshot has been captured and saved, this handler will receive aSnapshotOffermessage followed by events that are younger than the offered snapshot.This handler must not have side-effects other than changing persistent actor state i.e. it should not perform actions that may fail, such as interacting with external services, for example. If there is a problem with recovering the state of the actor from the journal, the error will be logged and the actor will be stopped. - Specified by:
- receiveRecoverin interface- Eventsourced
- See Also:
- Recovery
 
 - 
selfpublic final ActorRef self() Description copied from interface:ActorThe 'self' field holds the ActorRef for this actor. Can be used to send messages to itself:self ! message - Specified by:
- selfin interface- Actor
- Specified by:
- selfin interface- StashSupport
 
 - 
snapshotStoreprotected ActorRef snapshotStore() Description copied from interface:SnapshotterSnapshot store plugin actor.- Specified by:
- snapshotStorein interface- Eventsourced
- Specified by:
- snapshotStorein interface- Snapshotter
 
 
- 
 
-