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 / イベントの型
- Alphabetic
- By Inheritance
- EventStoreAsync
- EventStoreOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type This = EventStoreAsync[AID, A, E]
- Definition Classes
- EventStoreAsync → EventStoreOptions
Abstract Value Members
- 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.DeserializationExceptionif an error occurred during deserialization / デシリアライズ中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.EventStoreReadExceptionif an error occurred during reading from the event store
- 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.DeserializationExceptionif an error occurred during deserialization / デシリアライズ中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.EventStoreReadExceptionif an error occurred during reading from the event store
- 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.EventStoreWriteExceptionif an error occurred during writing to the event store / イベントストアへの書き込み中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.SerializationExceptionif an error occurred during serialization / シリアライズ中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.TransactionExceptionif an error occurred during transaction / トランザクション中にエラーが発生した場合
- 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.EventStoreWriteExceptionif an error occurred during writing to the event store / イベントストアへの書き込み中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.SerializationExceptionif an error occurred during serialization / シリアライズ中にエラーが発生した場合com.github.j5ik2o.event.store.adapter.java.TransactionExceptionif an error occurred during transaction / トランザクション中にエラーが発生した場合
- 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
- Definition Classes
- EventStoreOptions
- abstract def withEventSerializer(eventSerializer: EventSerializer[AID, E]): This
Specifies the event serializer.
Specifies the event serializer. / イベントシリアライザを指定します。
- eventSerializer
EventSerializer instance / EventSerializerのインスタンス
- returns
- Definition Classes
- EventStoreOptions
- 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
- Definition Classes
- EventStoreOptions
- abstract def withKeyResolver(keyResolver: KeyResolver[AID]): This
Specifies the key resolver.
Specifies the key resolver. / キーリゾルバを指定します。
- keyResolver
KeyResolver instance / KeyResolverのインスタンス
- returns
- Definition Classes
- EventStoreOptions
- abstract def withSnapshotSerializer(snapshotSerializer: SnapshotSerializer[AID, A]): This
Specifies the snapshot serializer.
Specifies the snapshot serializer. / スナップショットシリアライザを指定します。
- snapshotSerializer
SnapshotSerializer instance / SnapshotSerializerのインスタンス
- returns
- Definition Classes
- EventStoreOptions
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)