no.nextgentel.oss.akkatools.persistence

EnhancedPersistentJavaActor

Related Doc: package persistence

abstract class EnhancedPersistentJavaActor[Ex <: Exception] extends EnhancedPersistentActor[AnyRef, Ex] with EnhancedPersistentJavaActorLike

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

Instance Constructors

  1. new EnhancedPersistentJavaActor()(implicit arg0: ClassTag[Ex])

  2. new EnhancedPersistentJavaActor(idleTimeout: FiniteDuration)(implicit arg0: ClassTag[Ex])

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Abstract Value Members

  1. abstract def onEventJava(event: AnyRef): 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
    Definition Classes
    EnhancedPersistentActor
  3. abstract def stateInfo(): String

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  4. abstract def tryCommandJava(cmd: 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: AnyRef): 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. def doUnconfirmedWarningProcessing(): Boolean

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

    Definition Classes
    EnhancedPersistentActor
  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
    Definition Classes
    EnhancedPersistentActor
  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
    Definition Classes
    EnhancedPersistentActor
  39. def isExpectedError(e: Exception): Boolean

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  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

    Definition Classes
    EnhancedPersistentActor
  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: AnyRef): Unit

    Attributes
    protected
    Definition Classes
    EnhancedPersistentActor
  52. val onEvent: PartialFunction[AnyRef, Unit]

  53. def onReceiveRecover(event: AnyRef): Unit

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

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

    Definition Classes
    Eventsourced
  56. def persistAndApplyEvent(event: AnyRef): Unit

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

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

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

    Definition Classes
    Eventsourced
  60. def persistenceId: String

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

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

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

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

    Definition Classes
    ProcessorImpl
  65. def preStart(): Unit

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

    Definition Classes
    PersistentActor → Actor
  67. def receiveCommand: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  68. def receiveRecover: Receive

    Definition Classes
    EnhancedPersistentActor → Eventsourced
  69. def recoveryFinished: Boolean

    Definition Classes
    ProcessorImpl
  70. def recoveryRunning: Boolean

    Definition Classes
    ProcessorImpl
  71. def redeliverInterval: FiniteDuration

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

    Definition Classes
    Snapshotter
  73. implicit final val self: ActorRef

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    MdcSupport
  81. def snapshotSequenceNr: Long

    Definition Classes
    Recovery → Snapshotter
  82. def snapshotterId: String

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

    Definition Classes
    StashSupport
  84. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  86. def toString(): String

    Definition Classes
    AnyRef → Any
  87. val tryCommand: PartialFunction[AnyRef, Unit]

  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[AnyRef, Ex]

Inherited from MdcSupport[AnyRef]

Inherited from BeforeAndAfterEventAndCommand[AnyRef]

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