Packages

trait EventStoreAsync[AID <: AggregateId, A <: Aggregate[A, AID], E <: Event[AID]] extends EventStoreOptions[AID, A, E]

Asynchronous version of EventStore. / EventStoreの非同期版。

AID

AggregateId type / 集約IDの型

A

Aggregate type / 集約の型

E

Event type / イベントの型

Linear Supertypes
EventStoreOptions[AID, A, E], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventStoreAsync
  2. EventStoreOptions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type This = EventStoreAsync[AID, A, E]
    Definition Classes
    EventStoreAsyncEventStoreOptions

Abstract Value Members

  1. abstract def getEventsByIdSinceSequenceNumber(clazz: Class[E], id: AID, sequenceNumber: Long)(implicit ec: ExecutionContext): Future[Seq[E]]

    Gets the events by the aggregate id and since the sequence number.

    Gets the events by the aggregate id and since the sequence number. / 集約IDとシーケンス番号以降のイベントを取得します。

    clazz

    class of Event E to be deserialized / デシリアライズ対象のイベントEのクラス

    id

    id of Aggregate A / 集約AのID

    sequenceNumber

    sequence number / シーケンス番号

    returns

    Event Seq wrapped by Future / FutureでラップされたEventのSeq

    Exceptions thrown

    com.github.j5ik2o.event.store.adapter.java.DeserializationException if an error occurred during deserialization / デシリアライズ中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.EventStoreReadException if an error occurred during reading from the event store

  2. abstract def getLatestSnapshotById(clazz: Class[A], id: AID)(implicit ec: ExecutionContext): Future[Option[A]]

    Gets the latest snapshot by the aggregate id.

    Gets the latest snapshot by the aggregate id. / 集約IDによる最新のスナップショットを取得します。

    clazz

    class of Aggregate A to be deserialized / デシリアライズ対象の集約Aのクラス

    id

    id of Aggregate A / 集約AのID

    returns

    Aggregate wrapped by Future / FutureでラップされたAggregate

    Exceptions thrown

    com.github.j5ik2o.event.store.adapter.java.DeserializationException if an error occurred during deserialization / デシリアライズ中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.EventStoreReadException if an error occurred during reading from the event store

  3. abstract def persistEvent(event: E, version: Long)(implicit ec: ExecutionContext): Future[Unit]

    Persists an event only.

    Persists an event only. / イベントのみを永続化します。

    event

    Event / イベント

    version

    version / バージョン

    returns

    Future without result / 結果を持たないFuture

    Exceptions thrown

    com.github.j5ik2o.event.store.adapter.java.EventStoreWriteException if an error occurred during writing to the event store / イベントストアへの書き込み中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.SerializationException if an error occurred during serialization / シリアライズ中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.TransactionException if an error occurred during transaction / トランザクション中にエラーが発生した場合

  4. abstract def persistEventAndSnapshot(event: E, snapshot: A)(implicit ec: ExecutionContext): Future[Unit]

    Persists an event and a snapshot.

    Persists an event and a snapshot. / イベントとスナップショットを永続化します。

    event

    Event / イベント

    snapshot

    Aggregate / スナップショット

    returns

    Future without result / 結果を持たないFuture

    Exceptions thrown

    com.github.j5ik2o.event.store.adapter.java.EventStoreWriteException if an error occurred during writing to the event store / イベントストアへの書き込み中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.SerializationException if an error occurred during serialization / シリアライズ中にエラーが発生した場合

    com.github.j5ik2o.event.store.adapter.java.TransactionException if an error occurred during transaction / トランザクション中にエラーが発生した場合

  5. abstract def withDeleteTtl(deleteTtl: FiniteDuration): This

    Specifies the time until it is deleted by TTL.

    Specifies the time until it is deleted by TTL. / TTLによって削除されるまでの時間を指定します。

    deleteTtl

    Time until it is deleted by TTL / TTLによって削除されるまでの時間

    returns

    This

    Definition Classes
    EventStoreOptions
  6. abstract def withEventSerializer(eventSerializer: EventSerializer[AID, E]): This

    Specifies the event serializer.

    Specifies the event serializer. / イベントシリアライザを指定します。

    eventSerializer

    EventSerializer instance / EventSerializerのインスタンス

    returns

    This

    Definition Classes
    EventStoreOptions
  7. abstract def withKeepSnapshotCount(keepSnapshotCount: Int): This

    Specifies the number of snapshots to keep.

    Specifies the number of snapshots to keep. / スナップショットを保持する数を指定します。

    keepSnapshotCount

    the number of snapshots kept / スナップショットを保持する数

    returns

    This

    Definition Classes
    EventStoreOptions
  8. abstract def withKeyResolver(keyResolver: KeyResolver[AID]): This

    Specifies the key resolver.

    Specifies the key resolver. / キーリゾルバを指定します。

    keyResolver

    KeyResolver instance / KeyResolverのインスタンス

    returns

    This

    Definition Classes
    EventStoreOptions
  9. abstract def withSnapshotSerializer(snapshotSerializer: SnapshotSerializer[AID, A]): This

    Specifies the snapshot serializer.

    Specifies the snapshot serializer. / スナップショットシリアライザを指定します。

    snapshotSerializer

    SnapshotSerializer instance / SnapshotSerializerのインスタンス

    returns

    This

    Definition Classes
    EventStoreOptions

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from EventStoreOptions[AID, A, E]

Inherited from AnyRef

Inherited from Any

Ungrouped