Class

io.atlassian.event.stream.dynamo

DynamoEventStorage

Related Doc: package dynamo

Permalink

class DynamoEventStorage[F[_], KK, S, E] extends EventStorage[F, KK, S, E]

Implementation of EventStorage using DynamoDB via the aws-scala library. To use it:

  1. Provide a table definition. Specifically, this requires an event stream key NamedColumn, a Column definition for the events, and a NamedColumn for the sequence type. This in turn will require Decoders/Encoders to be defined for the key, sequence and event columns. 2. Provide an interpreter for DynamoDBActions to Task. DynamoDBActions are created inside and need to be run. 3. Provide a transform from Task to your desired container type. Task is actually a good option since it needs a Monad and Catchable, so the transform can just be a NaturalTransformation.refl[Task].
F

Container around operations on an underlying data store e.g. Task.

Linear Supertypes
EventStorage[F, KK, S, E], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DynamoEventStorage
  2. EventStorage
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DynamoEventStorage(tableDef: TableDefinition[KK, E, KK, S], runAction: ~>[DynamoDBAction, F])(implicit M: Monad[F], EKK: Encoder[KK], DKK: Decoder[KK], ES: Encoder[S], DS: Decoder[S], C: Catchable[F])

    Permalink

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. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def get(key: KK, fromSeq: Option[S]): Process[F, Event[KK, S, E]]

    Permalink
    Definition Classes
    DynamoEventStorage → EventStorage
  10. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  13. def latest(key: KK): OptionT[F, Event[KK, S, E]]

    Permalink
    Definition Classes
    DynamoEventStorage → EventStorage
  14. def mapKS[KK, SS](k: (KK) ⇒ KK, kk: (KK) ⇒ KK, s: (SS) ⇒ S, ss: (S) ⇒ SS)(implicit F: Functor[F]): EventStorage[F, KK, SS, E] { def updateKey(event: io.atlassian.event.stream.Event[KK,S,E]): io.atlassian.event.stream.Event[KK,SS,E] }

    Permalink
    Definition Classes
    EventStorage
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def put(event: Event[KK, S, E]): F[\/[EventStreamError, Event[KK, S, E]]]

    Permalink
    Definition Classes
    DynamoEventStorage → EventStorage
  19. lazy val schema: TableDefinition[EID, EV, KK, S]

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from EventStorage[F, KK, S, E]

Inherited from AnyRef

Inherited from Any

Ungrouped