no.nextgentel.oss.akkatools.persistence

EnhancedPersistentShardingActor

Related Doc: package persistence

abstract class EnhancedPersistentShardingActor[E, Ex <: Exception] extends EnhancedPersistentActor[E, Ex]

Linear Supertypes
EnhancedPersistentActor[E, Ex], 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. EnhancedPersistentShardingActor
  2. EnhancedPersistentActor
  3. MdcSupport
  4. BeforeAndAfterEventAndCommand
  5. DiagnosticActorLogging
  6. AtLeastOnceDelivery
  7. Processor
  8. PersistentActor
  9. Eventsourced
  10. ProcessorImpl
  11. Recovery
  12. StashFactory
  13. Stash
  14. RequiresMessageQueue
  15. UnrestrictedStash
  16. StashSupport
  17. Snapshotter
  18. Actor
  19. AnyRef
  20. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnhancedPersistentShardingActor(ourDispatcherActor: ActorPath)(implicit arg0: ClassTag[E], arg1: ClassTag[Ex])

  2. new EnhancedPersistentShardingActor(idleTimeout: FiniteDuration, ourDispatcherActor: ActorPath)(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]

    Definition Classes
    EnhancedPersistentActor
  2. abstract def stateInfo(): String

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  3. abstract def tryCommand: PartialFunction[AnyRef, Unit]

    Definition Classes
    EnhancedPersistentActor

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
    Definition Classes
    EnhancedPersistentActor
  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. lazy val dispatchId: String

  27. def doUnconfirmedWarningProcessing(): Boolean

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  28. 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
    Definition Classes
    EnhancedPersistentActor
  29. implicit val ec: ExecutionContextExecutor

    Definition Classes
    EnhancedPersistentActor
  30. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  35. def getDeliverySnapshot: AtLeastOnceDeliverySnapshot

    Definition Classes
    AtLeastOnceDelivery
  36. def getDurableMessageSender(): ActorPath

    Attributes
    protected
    Definition Classes
    EnhancedPersistentShardingActorEnhancedPersistentActor
  37. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  38. val initialBehavior: Receive

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

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  40. def isExpectedError(e: Exception): Boolean

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. def lastSequenceNr: Long

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

    Definition Classes
    Snapshotter
  44. val log: DiagnosticLoggingAdapter

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

    Definition Classes
    EnhancedPersistentActor
  46. def maxUnconfirmedMessages: Int

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

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

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

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

    Definition Classes
    AnyRef
  51. def numberOfUnconfirmed: Int

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

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  53. 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
    Definition Classes
    EnhancedPersistentShardingActorEnhancedPersistentActor
  54. def onReceiveRecover(event: E): Unit

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  55. final def persist[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

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

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

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  58. def persistAndApplyEvents(events: List[E]): Unit

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  59. final def persistAsync[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

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

    Definition Classes
    Eventsourced
  61. def persistenceId: String

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

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

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

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

    Definition Classes
    ProcessorImpl
  66. def preStart(): Unit

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

    Definition Classes
    PersistentActor → Actor
  68. def receiveCommand: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  69. def receiveRecover: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  70. def recoveryFinished: Boolean

    Definition Classes
    ProcessorImpl
  71. def recoveryRunning: Boolean

    Definition Classes
    ProcessorImpl
  72. def redeliverInterval: FiniteDuration

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

    Definition Classes
    Snapshotter
  74. implicit final val self: ActorRef

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

    Attributes
    protected
    Definition Classes
    EnhancedPersistentShardingActorEnhancedPersistentActor
  76. def sendAsDurableMessage(payload: AnyRef, destinationActor: ActorPath): Unit

    Attributes
    protected
    Definition Classes
    EnhancedPersistentShardingActorEnhancedPersistentActor
  77. def sendAsDurableMessage(payload: AnyRef, destinationActor: ActorPath, confirmationRoutingInfo: AnyRef): Unit

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  78. final def sender(): ActorRef

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

    Definition Classes
    AtLeastOnceDelivery
  80. 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
    Definition Classes
    EnhancedPersistentActor
  81. def setMdcValue(name: String, value: String): Unit

    Attributes
    protected
    Definition Classes
    MdcSupport
  82. def snapshotSequenceNr: Long

    Definition Classes
    Recovery → Snapshotter
  83. def snapshotterId: String

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

    Definition Classes
    StashSupport
  85. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  87. def toString(): String

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. 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 EnhancedPersistentActor[E, Ex]

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