org.sisioh.dddbase.lifecycle.memory.async

AsyncRepositoryOnMemorySupport

trait AsyncRepositoryOnMemorySupport[ID <: Identifier[_], E <: Entity[ID] with EntityCloneable[ID, E]] extends AsyncRepositoryOnMemory[ID, E]

非同期型オンメモリ不変リポジトリの骨格実装を提供するためのトレイト。

Future の中で core に同期型のオンメモリリポジトリを利用することで非同期版として 実装を提供する。リポジトリの状態変更を起こすメソッドを呼び出した際に、新しいインスタンス を生成するか this を返すかは createInstance メソッドの振る舞いによって決定する。

ID

識別子の型

E

エンティティの型

Linear Supertypes
AsyncRepositoryOnMemory[ID, E], AsyncRepository[ID, E], AsyncEntityWriter[ID, E], AsyncEntityReader[ID, E], AsyncEntityIO, Repository[ID, E, Future], EntityWriter[ID, E, Future], EntityReader[ID, E, Future], EntityIO[Future], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncRepositoryOnMemorySupport
  2. AsyncRepositoryOnMemory
  3. AsyncRepository
  4. AsyncEntityWriter
  5. AsyncEntityReader
  6. AsyncEntityIO
  7. Repository
  8. EntityWriter
  9. EntityReader
  10. EntityIO
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Ctx = EntityIOContext[Future]

    Definition Classes
    EntityIO
  2. type Result = AsyncResultWithEntity[This, ID, E]

    Definition Classes
    AsyncEntityWriter → EntityWriter
  3. type Results = AsyncResultWithEntities[This, ID, E]

    Definition Classes
    AsyncEntityWriter → EntityWriter
  4. abstract type This <: AsyncRepository[ID, E]

    Definition Classes
    AsyncRepository → AsyncEntityWriter → Repository → EntityWriter

Abstract Value Members

  1. abstract def createInstance(entities: Map[ID, E]): This

    Attributes
    protected
  2. abstract def getEntities: Map[ID, E]

    Attributes
    protected
    Definition Classes
    AsyncRepositoryOnMemory

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(identifier: ID)(implicit ctx: Ctx): Future[E]

    Definition Classes
    EntityReader
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def deleteBy(identifier: ID)(implicit ctx: Ctx): Future[Result]

    Definition Classes
    AsyncRepositoryOnMemorySupport → EntityWriter
  10. def deleteByMulti(identifiers: ID*)(implicit ctx: Ctx): Future[Results]

    Definition Classes
    EntityWriter
  11. def entities: Map[ID, E]

    Definition Classes
    AsyncRepositoryOnMemory
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(obj: Any): Boolean

    Definition Classes
    AsyncRepositoryOnMemorySupport → AnyRef → Any
  14. def exist(entity: E)(implicit ctx: Ctx): Future[Boolean]

    Definition Classes
    EntityReader
  15. def existBy(identifier: ID)(implicit ctx: Ctx): Future[Boolean]

    Definition Classes
    AsyncRepositoryOnMemorySupport → EntityReader
  16. def existByMulti(identifiers: ID*)(implicit ctx: Ctx): Future[Boolean]

    Definition Classes
    EntityReader
  17. def existMulti(entities: E*)(implicit ctx: Ctx): Future[Boolean]

    Definition Classes
    EntityReader
  18. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  20. def getExecutionContext(ctx: Ctx): ExecutionContext

    Attributes
    protected
    Definition Classes
    AsyncEntityIO
  21. def hashCode(): Int

    Definition Classes
    AsyncRepositoryOnMemorySupport → AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def mapValues[A, R](values: Future[A])(f: (A) ⇒ R)(implicit ctx: Ctx): Future[R]

    Attributes
    protected
    Definition Classes
    AsyncEntityReader → EntityReader
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def resolveBy(identifier: ID)(implicit ctx: Ctx): Future[E]

    Definition Classes
    AsyncRepositoryOnMemorySupport → EntityReader
  28. def resolveByMulti(identifiers: ID*)(implicit ctx: Ctx): Future[Seq[E]]

    Definition Classes
    EntityReader
  29. def store(entity: E)(implicit ctx: Ctx): Future[Result]

    Definition Classes
    AsyncRepositoryOnMemorySupport → EntityWriter
  30. def storeMulti(entities: E*)(implicit ctx: Ctx): Future[Results]

    Definition Classes
    EntityWriter
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def traverse[A, R](values: Seq[A], forceSuccess: Boolean)(f: (A) ⇒ Future[R])(implicit ctx: Ctx): Future[Seq[R]]

    Attributes
    protected
    Definition Classes
    AsyncEntityReader → EntityReader
  34. final def traverseWithThis[A](values: Seq[A])(processor: (This, A) ⇒ Future[Result])(implicit ctx: Ctx): Future[Results]

    Attributes
    protected
    Definition Classes
    AsyncEntityWriter → EntityWriter
  35. def traverseWithoutFailures[A, R](values: Seq[A])(f: (A) ⇒ Future[R])(implicit ctx: Ctx): Future[Seq[R]]

    Attributes
    protected
    Definition Classes
    EntityReader
  36. def update(identifier: ID, entity: E)(implicit ctx: Ctx): Future[Result]

    Definition Classes
    EntityWriter
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AsyncRepositoryOnMemory[ID, E]

Inherited from AsyncRepository[ID, E]

Inherited from AsyncEntityWriter[ID, E]

Inherited from AsyncEntityReader[ID, E]

Inherited from AsyncEntityIO

Inherited from Repository[ID, E, Future]

Inherited from EntityWriter[ID, E, Future]

Inherited from EntityReader[ID, E, Future]

Inherited from EntityIO[Future]

Inherited from AnyRef

Inherited from Any

Ungrouped