trait ResourceMirror[IO[_], T] extends ReconcileSource[IO, T]
ResourceMirror provides:
- A snapshot of the current state of a set of resources
- A stream tracking the ID of changed resources. Subscribers to this stream MUST NOT backpressure, as that could cause the watcher (and other observers) to fall behind. In practice, this is typically consumed by Dispatcher, which doesn't backpressure.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ResourceMirror
- ReconcileSource
- ReconcileSourceBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def active: IO[Map[Id[T], T]]
- abstract def activeValues: IO[List[T]]
- abstract def all: IO[ResourceMap[T]]
- abstract def allValues: IO[List[ResourceState[T]]]
- abstract def get(id: Id[T]): IO[Option[ResourceState[T]]]
- Definition Classes
- ResourceMirror → ReconcileSourceBase
- abstract def getActive(id: Id[T]): IO[Option[T]]
- abstract def ids: Stream[IO, Id[T]]
- Definition Classes
- ReconcileSourceBase
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]) @native() @HotSpotIntrinsicCandidate()
- 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
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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])
- def withActiveResourceTrigger[S](mirror: ResourceMirror[IO, S])(extractIds: (S) => IO[List[Id[T]]])(implicit io: Concurrent[IO]): ReconcileSource[IO, T]
- Definition Classes
- ReconcileSource
- def withExternalTrigger(triggers: Stream[IO, Id[T]])(implicit io: Concurrent[IO]): ReconcileSource[IO, T]
- Definition Classes
- ReconcileSource
- def withIdTrigger[R](watcher: ReconcileSource[IO, R])(extractIds: (Id[R]) => IO[List[Id[T]]])(implicit concurrent: Concurrent[IO]): ReconcileSource[IO, T]
- Definition Classes
- ReconcileSource
- def withResourceTrigger[R](mirror: ResourceMirror[IO, R])(extractIds: (ResourceState[R]) => IO[List[Id[T]]])(implicit io: Concurrent[IO]): ReconcileSource[IO, T]
- Definition Classes
- ReconcileSource
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated