Trait

org.sisioh.dddbase.lifecycle.memory.async

AsyncRepositoryOnMemorySupport

Related Doc: package async

Permalink

trait AsyncRepositoryOnMemorySupport[ID <: Identifier[_], E <: Entity[ID]] 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
Visibility
  1. Public
  2. All

Type Members

  1. type Ctx = EntityIOContext[Future]

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

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

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

    Permalink
    Definition Classes
    AsyncRepository → AsyncEntityWriter → Repository → EntityWriter

Abstract Value Members

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncRepositoryOnMemory

Concrete 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. def apply(identifier: ID)(implicit ctx: Ctx): Future[E]

    Permalink
    Definition Classes
    EntityReader
  5. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    EntityReader
  16. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    EntityWriter
  35. final def wait(): Unit

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

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

    Permalink
    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