Packages

case class ObservableLog[A](underlying: RaftLog[A])(implicit scheduler: Scheduler) extends DelegateLog[A] with CommittedOps[A] with AppendOps[A] with Product with Serializable

Wraps a riff.raft.log.RaftLog for a local node which exposes Observable data publishers for: $ Appended LogCoords $ Appended LogEntry $ Appended LogCoords from a historic index $ Appended LogEntry from a historic index $ Committed LogCoords $ Committed LogEntry $ Committed LogCoords from a historic index $ Committed LogEntry from a historic index

underlying

the wrapped log

scheduler

the scheduler to use for the observables

Linear Supertypes
Serializable, Serializable, Product, Equals, AppendOps[A], CommittedOps[A], DelegateLog[A], RaftLog[A], RaftLogOps[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableLog
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AppendOps
  7. CommittedOps
  8. DelegateLog
  9. RaftLog
  10. RaftLogOps
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObservableLog(underlying: RaftLog[A])(implicit scheduler: Scheduler)

    underlying

    the wrapped log

    scheduler

    the scheduler to use for the observables

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 append(coords: LogCoords, data: A, theRest: A*)(implicit classTag: ClassTag[A]): LogAppendResult
    Definition Classes
    RaftLogOps
  5. def appendAll(fromIndex: LogIndex, data: Array[LogEntry[A]]): LogAppendResult
    Definition Classes
    ObservableLog → DelegateLog → RaftLogOps
  6. def appendCoords(): Observable[LogCoords]

    returns

    an observable of the appended BUT NOT YET committed entries from the time of subscription

    Definition Classes
    AppendOps
  7. def appendResults(): Observable[LogAppendResult]

    returns

    an observable of the appended BUT NOT YET committed entries

    Definition Classes
    ObservableLogAppendOps
  8. def appendedCoordsFrom(index: LogIndex): Observable[LogCoords]

    index

    the (one based!) index from which we'd like to read the appended coords

    returns

    an observable of all appended (not necessarily committed) entries from the given index

    Definition Classes
    ObservableLogAppendOps
  9. def appendedEntries(): Observable[(LogCoords, A)]

    returns

    an observable of the appended coordinates and data from the time of subscription

    Definition Classes
    AppendOps
  10. def appendedEntriesFrom(index: LogIndex): Observable[(LogCoords, A)]

    returns

    an observable of log entries from the given index

    Definition Classes
    AppendOps
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def cached(): CachingLog[A]
    Definition Classes
    RaftLogOps
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def commit(index: LogIndex): Seq[LogCoords]
    Definition Classes
    ObservableLog → DelegateLog → RaftLogOps
  15. def committedCoords(): Observable[LogCoords]

    returns

    an observable of committed coordinates from the point of subscription

    Definition Classes
    ObservableLogCommittedOps
  16. def committedCoordsFrom(index: LogIndex): Observable[LogCoords]

    index

    the (one based!) index from which we'd like to read the committed coords

    returns

    an observable of all committed entries from the given index

    Definition Classes
    ObservableLogCommittedOps
  17. def committedEntries(): Observable[(LogCoords, A)]

    returns

    an Observable of the committed coords and their values from the moment of subscription

    Definition Classes
    CommittedOps
  18. def committedEntriesFrom(index: LogIndex): Observable[(LogCoords, A)]

    index

    the (one based!) index from which to observe

    returns

    an observable of the log entries from a particular index

    Definition Classes
    CommittedOps
  19. def contains(entry: LogCoords): Boolean
    Definition Classes
    RaftLogOps
  20. def containsIndex(index: LogCoords): Boolean
    Attributes
    protected
    Definition Classes
    RaftLogOps
  21. final def coordsForIndex(index: LogIndex): Option[LogCoords]
    Definition Classes
    RaftLogOps
  22. def dataForIndex(coords: LogCoords): Observable[(LogCoords, A)]
    Attributes
    protected
    Definition Classes
    ObservableLogAppendOpsCommittedOps
  23. def entriesFrom(firstIndex: LogIndex, max: Int): Array[LogEntry[A]]
    Definition Classes
    RaftLogOps
  24. def entryForIndex(index: LogIndex): Option[LogEntry[A]]
    Definition Classes
    DelegateLog → RaftLogOps
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def latestAppended(): LogCoords
    Definition Classes
    DelegateLog → RaftLogOps
  30. def latestAppendedIndex(): LogIndex

    returns

    the append index from the most recent append or 1 if the last append was in error or not yet received

  31. def latestCommit(): LogIndex
    Definition Classes
    DelegateLog → RaftLogOps
  32. def latestCommittedIndex(): LogIndex
  33. def logState(): LogState
    Definition Classes
    RaftLogOps
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. def onAppend(currentTerm: Term, request: AppendEntries[A]): AppendEntriesResponse
    Definition Classes
    RaftLogOps
  38. def onCommit(applyToStateMachine: (LogEntry[A]) ⇒ Unit): StateMachineLog[A]
    Definition Classes
    RaftLogOps
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def termForIndex(index: LogIndex): Option[Term]
    Definition Classes
    DelegateLog → RaftLogOps
  41. val underlying: RaftLog[A]
    Definition Classes
    ObservableLog → DelegateLog
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AppendOps[A]

Inherited from CommittedOps[A]

Inherited from DelegateLog[A]

Inherited from RaftLog[A]

Inherited from RaftLogOps[A]

Inherited from AnyRef

Inherited from Any

Ungrouped