no.nextgentel.oss.akkatools.persistence

EnhancedPersistentActor

Related Docs: object EnhancedPersistentActor | package persistence

abstract class EnhancedPersistentActor[E, Ex <: Exception] extends Actor with PersistentActor with AtLeastOnceDelivery with DiagnosticActorLogging with BeforeAndAfterEventAndCommand[E] with MdcSupport[E]

Linear Supertypes
MdcSupport[E], BeforeAndAfterEventAndCommand[E], DiagnosticActorLogging, AtLeastOnceDelivery, Processor, PersistentActor, Eventsourced, ProcessorImpl, Recovery, StashFactory, Stash, RequiresMessageQueue[DequeBasedMessageQueueSemantics], UnrestrictedStash, StashSupport, Snapshotter, Actor, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EnhancedPersistentActor
  2. MdcSupport
  3. BeforeAndAfterEventAndCommand
  4. DiagnosticActorLogging
  5. AtLeastOnceDelivery
  6. Processor
  7. PersistentActor
  8. Eventsourced
  9. ProcessorImpl
  10. Recovery
  11. StashFactory
  12. Stash
  13. RequiresMessageQueue
  14. UnrestrictedStash
  15. StashSupport
  16. Snapshotter
  17. Actor
  18. AnyRef
  19. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnhancedPersistentActor(idleTimeout: FiniteDuration = ...)(implicit arg0: ClassTag[E], arg1: ClassTag[Ex])

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Abstract Value Members

  1. abstract def onEvent: PartialFunction[E, Unit]

  2. abstract def onInactiveTimeout(): Unit

    Called when actor has been idle for too long..

    Called when actor has been idle for too long..

    If running in sharding, you should stop like this:

    getContext().parent().tell(new ShardRegion.Passivate(PoisonPill.getInstance()), self());

    Attributes
    protected
  3. abstract def stateInfo(): String

    Attributes
    protected
  4. abstract def tryCommand: PartialFunction[AnyRef, Unit]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def afterOnEvent(): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfterEventAndCommand
  5. def afterTryCommand(): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfterEventAndCommand
  6. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    AtLeastOnceDelivery → ProcessorImpl → Actor
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    AtLeastOnceDelivery → ProcessorImpl → Actor
  9. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    ProcessorImpl → Actor
  10. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    DiagnosticActorLogging → Actor
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def beforeOnEvent(event: E): Unit

    Attributes
    protected
    Definition Classes
    MdcSupportBeforeAndAfterEventAndCommand
  13. def beforeTryCommand(cmd: AnyRef): Unit

    Attributes
    protected
    Definition Classes
    MdcSupportBeforeAndAfterEventAndCommand
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def confirmDelivery(deliveryId: Long): Boolean

    Definition Classes
    AtLeastOnceDelivery
  16. implicit val context: ActorContext

    Definition Classes
    Actor
  17. var currentLogLevelInfo: Boolean

    Attributes
    protected
  18. def defaultMdc(): Unit

    Attributes
    protected
    Definition Classes
    MdcSupport
  19. final def defer[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  20. final def defer[A](event: A)(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  21. def deleteMessages(toSequenceNr: Long, permanent: Boolean): Unit

    Definition Classes
    ProcessorImpl
  22. def deleteMessages(toSequenceNr: Long): Unit

    Definition Classes
    ProcessorImpl
  23. def deleteSnapshot(sequenceNr: Long, timestamp: Long): Unit

    Definition Classes
    Snapshotter
  24. def deleteSnapshots(criteria: SnapshotSelectionCriteria): Unit

    Definition Classes
    Snapshotter
  25. def deliver(destination: ActorPath, deliveryIdToMessage: (Long) ⇒ Any): Unit

    Definition Classes
    AtLeastOnceDelivery
  26. def doUnconfirmedWarningProcessing(): Boolean

    Attributes
    protected
  27. def durableMessageNotDeliveredHandler(originalPayload: Any, errorMsg: String): Unit

    If doUnconfirmedWarningProcessing is turned on, then override this method to try to do something useful before we give up

    If doUnconfirmedWarningProcessing is turned on, then override this method to try to do something useful before we give up

    originalPayload

    Attributes
    protected
  28. implicit val ec: ExecutionContextExecutor

  29. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  31. def extractMdc(eventOrCmd: AnyRef): Unit

    Attributes
    protected
    Definition Classes
    MdcSupport
  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  34. def getDeliverySnapshot: AtLeastOnceDeliverySnapshot

    Definition Classes
    AtLeastOnceDelivery
  35. def getDurableMessageSender(): ActorPath

    Attributes
    protected
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. val initialBehavior: Receive

    Attributes
    protected[akka.persistence]
    Definition Classes
    Eventsourced
  38. def internalProcessUnconfirmedWarning(unconfirmedWarning: UnconfirmedWarning): Unit

    Attributes
    protected
  39. def isExpectedError(e: Exception): Boolean

    Attributes
    protected
  40. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  41. def lastSequenceNr: Long

    Definition Classes
    Recovery
  42. def loadSnapshot(persistenceId: String, criteria: SnapshotSelectionCriteria, toSequenceNr: Long): Unit

    Definition Classes
    Snapshotter
  43. val log: DiagnosticLoggingAdapter

    Definition Classes
    DiagnosticActorLogging
  44. def logMessage(message: String): Unit

  45. def maxUnconfirmedMessages: Int

    Definition Classes
    AtLeastOnceDelivery
  46. def mdc(currentMessage: Any): MDC

    Definition Classes
    MdcSupport → DiagnosticActorLogging
  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. final def notify(): Unit

    Definition Classes
    AnyRef
  49. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  50. def numberOfUnconfirmed: Int

    Definition Classes
    AtLeastOnceDelivery
  51. def onApplyingLiveEvent(event: E): Unit

    Attributes
    protected
  52. def onReceiveRecover(event: E): Unit

    Attributes
    protected
  53. final def persist[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  54. final def persist[A](event: A)(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  55. def persistAndApplyEvent(event: E): Unit

    Attributes
    protected
  56. def persistAndApplyEvents(events: List[E]): Unit

    Attributes
    protected
  57. final def persistAsync[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  58. final def persistAsync[A](event: A)(handler: (A) ⇒ Unit): Unit

    Definition Classes
    Eventsourced
  59. def persistenceId: String

    Definition Classes
    Processor → Recovery
  60. def postRestart(reason: Throwable): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  61. def postStop(): Unit

    Definition Classes
    EnhancedPersistentActor → Eventsourced → UnrestrictedStash → Actor
  62. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Eventsourced → ProcessorImpl → UnrestrictedStash → Actor
  63. def preRestartDefault(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    ProcessorImpl
  64. def preStart(): Unit

    Definition Classes
    EnhancedPersistentActor → ProcessorImpl → Actor
  65. def receive: Receive

    Definition Classes
    PersistentActor → Actor
  66. def receiveCommand: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  67. def receiveRecover: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  68. def recoveryFinished: Boolean

    Definition Classes
    ProcessorImpl
  69. def recoveryRunning: Boolean

    Definition Classes
    ProcessorImpl
  70. def redeliverInterval: FiniteDuration

    Definition Classes
    AtLeastOnceDelivery
  71. def saveSnapshot(snapshot: Any): Unit

    Definition Classes
    Snapshotter
  72. implicit final val self: ActorRef

    Definition Classes
    Actor
  73. def sendAsDurableMessage(sendAsDurableMessage: SendAsDurableMessage): Unit

    Attributes
    protected
  74. def sendAsDurableMessage(payload: AnyRef, destinationActor: ActorPath, confirmationRoutingInfo: AnyRef): Unit

    Attributes
    protected
  75. def sendAsDurableMessage(payload: AnyRef, destinationActor: ActorPath): Unit

    Attributes
    protected
  76. final def sender(): ActorRef

    Definition Classes
    Actor
  77. def setDeliverySnapshot(snapshot: AtLeastOnceDeliverySnapshot): Unit

    Definition Classes
    AtLeastOnceDelivery
  78. def setLogLevels(eventLogLevelInfo: Boolean, recoveringEventLogLevelInfo: Boolean, cmdLogLevelInfo: Boolean): Unit

    eventLogLevelInfo

    Used when processing events live - not recovering

    recoveringEventLogLevelInfo

    Used when recovering events

    cmdLogLevelInfo

    Used when processing commands

    Attributes
    protected
  79. def setMdcValue(name: String, value: String): Unit

    Attributes
    protected
    Definition Classes
    MdcSupport
  80. def snapshotSequenceNr: Long

    Definition Classes
    Recovery → Snapshotter
  81. def snapshotterId: String

    Definition Classes
    ProcessorImpl → Snapshotter
  82. def stash(): Unit

    Definition Classes
    StashSupport
  83. def supervisorStrategy: SupervisorStrategy

    Definition Classes
    Actor
  84. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  85. def toString(): String

    Definition Classes
    AnyRef → Any
  86. def unhandled(message: Any): Unit

    Definition Classes
    ProcessorImpl → Actor
  87. def unstashAll(): Unit

    Definition Classes
    Eventsourced → StashSupport
  88. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. def warnAfterNumberOfUnconfirmedAttempts: Int

    Definition Classes
    AtLeastOnceDelivery

Deprecated Value Members

  1. implicit def currentPersistentMessage: Option[Persistent]

    Definition Classes
    Recovery
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.4) currentPersistentMessage will be removed, sequence number can be retrieved with lastSequenceNr.

  2. def deleteMessage(sequenceNr: Long, permanent: Boolean): Unit

    Definition Classes
    ProcessorImpl
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.4) deleteMessage(sequenceNr) will be removed. Instead, validate before persist, and use deleteMessages for pruning.

  3. def deleteMessage(sequenceNr: Long): Unit

    Definition Classes
    ProcessorImpl
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.4) deleteMessage(sequenceNr) will be removed. Instead, validate before persist, and use deleteMessages for pruning.

  4. def getCurrentPersistentMessage: Persistent

    Definition Classes
    Recovery
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.4) getCurrentPersistentMessage will be removed, sequence number can be retrieved with lastSequenceNr.

  5. def processorId: String

    Definition Classes
    ProcessorImpl → Recovery
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3.4) Override persistenceId: String instead. Processor will be removed.

Inherited from MdcSupport[E]

Inherited from BeforeAndAfterEventAndCommand[E]

Inherited from DiagnosticActorLogging

Inherited from AtLeastOnceDelivery

Inherited from Processor

Inherited from PersistentActor

Inherited from Eventsourced

Inherited from ProcessorImpl

Inherited from Recovery

Inherited from StashFactory

Inherited from Stash

Inherited from RequiresMessageQueue[DequeBasedMessageQueueSemantics]

Inherited from UnrestrictedStash

Inherited from StashSupport

Inherited from Snapshotter

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped