Trait

io.atlassian.event.source

LongSequencedEventSource

Related Doc: package source

Permalink

trait LongSequencedEventSource[K, V] extends EventSource[K, V, Long]

Trait that implementations of an event source need to extend where the sequence number is just a long.

K

The key against which values are stored.

V

Values to be store

Linear Supertypes
EventSource[K, V, Long], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LongSequencedEventSource
  2. EventSource
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait API[F[_]] extends AnyRef

    Permalink

    This is the main interface for consumers of the Event source.

    This is the main interface for consumers of the Event source.

    Implementations contain logic to create a transform given a value to save.

    Upon construction of an API, a suitable Events store needs to be provided.

    F

    Container type for API operations. It needs to be a Monad and a Catchable (e.g. scalaz Task)

    Definition Classes
    EventSource
  2. case class Event(id: EventId, time: DateTime, operation: Transform[V]) extends Product with Serializable

    Permalink
    Definition Classes
    EventSource
  3. case class EventId(key: K, sequence: S) extends Product with Serializable

    Permalink

    A event is identified by the key and an incrementing sequence number

    A event is identified by the key and an incrementing sequence number

    key

    The key

    sequence

    the sequence number

    Definition Classes
    EventSource
  4. sealed trait Snapshot extends AnyRef

    Permalink

    A Snapshot wraps an optional value, and tags it with an event Id.

    A Snapshot wraps an optional value, and tags it with an event Id. We can say a 'snapshot' S of key K at event S.at is value S.value

    The event Id is quite a useful thing in addition to the value of the snapshot.

    This is only used internally within an event source.

    Definition Classes
    EventSource
  5. trait Storage[F[_]] extends AnyRef

    Permalink

    A source of events.

    A source of events. Implementations wrap around an underlying data store (e.g. in-memory map or DynamoDB).

    F

    Container around operations on an underlying data store. F must be a Monad and a Catchable (e.g. Task).

    Attributes
    protected
    Definition Classes
    EventSource

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. object Event extends Serializable

    Permalink
    Definition Classes
    EventSource
  5. object EventId extends Serializable

    Permalink
    Definition Classes
    EventSource
  6. lazy val S: Sequence[Long]

    Permalink
    Definition Classes
    LongSequencedEventSourceEventSource
  7. object Snapshot

    Permalink
    Definition Classes
    EventSource
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

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

Inherited from EventSource[K, V, Long]

Inherited from AnyRef

Inherited from Any

Ungrouped