Class

com.hootsuite.akka.persistence.redis.journal

RedisJournal

Related Doc: package journal

Permalink

class RedisJournal extends AsyncWriteJournal with ActorLogging with DefaultRedisComponent with ByteArraySerializer with JournalExecutionContext

Writes journals in Sorted Set, using SequenceNr as score. Deprecated API's are not implemented which causes few TCK tests to fail.

Linear Supertypes
JournalExecutionContext, ByteArraySerializer, DefaultRedisComponent, ActorLogging, AsyncWriteJournal, AsyncRecovery, WriteJournalBase, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RedisJournal
  2. JournalExecutionContext
  3. ByteArraySerializer
  4. DefaultRedisComponent
  5. ActorLogging
  6. AsyncWriteJournal
  7. AsyncRecovery
  8. WriteJournalBase
  9. Actor
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisJournal()

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit lazy val actorSystem: ActorSystem

    Permalink

    Define actor system for Rediscala and ByteArraySerializer

    Define actor system for Rediscala and ByteArraySerializer

    Definition Classes
    RedisJournalByteArraySerializerDefaultRedisComponent
  5. def aroundPostRestart(reason: Throwable): Unit

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

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundPreStart(): Unit

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

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def asyncDeleteMessagesTo(persistenceId: String, toSequenceNr: Long): Future[Unit]

    Permalink

    Plugin API: asynchronously deletes all persistent messages up to toSequenceNr (inclusive).

    Plugin API: asynchronously deletes all persistent messages up to toSequenceNr (inclusive).

    This call is protected with a circuit-breaker. Message deletion doesn't affect the highest sequence number of messages, journal must maintain the highest sequence number and never decrease it.

    Definition Classes
    RedisJournal → AsyncWriteJournal
  12. def asyncReadHighestSequenceNr(persistenceId: String, fromSequenceNr: Long): Future[Long]

    Permalink

    Plugin API: asynchronously reads the highest stored sequence number for the given persistenceId.

    Plugin API: asynchronously reads the highest stored sequence number for the given persistenceId.

    persistenceId

    persistent actor id.

    fromSequenceNr

    hint where to start searching for the highest sequence number.

    Definition Classes
    RedisJournal → AsyncRecovery
  13. def asyncReplayMessages(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long, max: Long)(replayCallback: (PersistentRepr) ⇒ Unit): Future[Unit]

    Permalink

    Plugin API: asynchronously replays persistent messages.

    Plugin API: asynchronously replays persistent messages. Implementations replay a message by calling replayCallback. The returned future must be completed when all messages (matching the sequence number bounds) have been replayed. The future must be completed with a failure if any of the persistent messages could not be replayed.

    The replayCallback must also be called with messages that have been marked as deleted. In this case a replayed message's deleted method must return true.

    The channel ids of delivery confirmations that are available for a replayed message must be contained in that message's confirms sequence.

    persistenceId

    persistent actor id.

    fromSequenceNr

    sequence number where replay should start (inclusive).

    toSequenceNr

    sequence number where replay should end (inclusive).

    max

    maximum number of messages to be replayed.

    replayCallback

    called to replay a single message. Can be called from any thread.

    Definition Classes
    RedisJournal → AsyncRecovery
  14. def asyncWriteMessages(messages: Seq[AtomicWrite]): Future[Seq[Try[Unit]]]

    Permalink
    Definition Classes
    RedisJournal → AsyncWriteJournal
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  17. implicit val ec: ExecutionContext

    Permalink
    Definition Classes
    JournalExecutionContext
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fromBytes[T](a: Array[Byte])(implicit arg0: ClassTag[T]): Try[T]

    Permalink
    Definition Classes
    ByteArraySerializer
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. val persistence: Persistence

    Permalink
    Definition Classes
    WriteJournalBase
  30. def postRestart(reason: Throwable): Unit

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

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  33. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. def preparePersistentBatch(rb: Seq[PersistentEnvelope]): Seq[AtomicWrite]

    Permalink
    Attributes
    protected
    Definition Classes
    WriteJournalBase
  35. final def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    AsyncWriteJournal → Actor
  36. def receivePluginInternal: akka.actor.Actor.Receive

    Permalink
    Definition Classes
    AsyncWriteJournal
  37. final val receiveWriteJournal: akka.actor.Actor.Receive

    Permalink
    Definition Classes
    AsyncWriteJournal
  38. lazy val redis: RedisClient

    Permalink
    Definition Classes
    DefaultRedisComponent
  39. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  40. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  41. def supervisorStrategy: SupervisorStrategy

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

    Permalink
    Definition Classes
    AnyRef
  43. def toBytes(data: AnyRef): Try[Array[Byte]]

    Permalink
    Definition Classes
    ByteArraySerializer
  44. def toString(): String

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

    Permalink
    Definition Classes
    Actor
  46. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JournalExecutionContext

Inherited from ByteArraySerializer

Inherited from DefaultRedisComponent

Inherited from ActorLogging

Inherited from AsyncWriteJournal

Inherited from AsyncRecovery

Inherited from WriteJournalBase

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped