case class Cache(publish: Sink[CacheUpdate[Any], NotUsed], subscribe: Source[(CacheUpdate[Any], CacheState), NotUsed], gatewayPublish: Sink[GatewayMessage[Any], NotUsed], gatewaySubscribe: Source[GatewayMessage[Any], NotUsed])(implicit mat: Materializer) extends Product with Serializable

Represents a cache that can be published and subscribed to.

publish

A sink used for publishing. Any elements connected to this sink is published to the cache.

subscribe

A source to subscribe to. All updates are pushed here.

Source
Cache.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cache
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cache(publish: Sink[CacheUpdate[Any], NotUsed], subscribe: Source[(CacheUpdate[Any], CacheState), NotUsed], gatewayPublish: Sink[GatewayMessage[Any], NotUsed], gatewaySubscribe: Source[GatewayMessage[Any], NotUsed])(implicit mat: Materializer)

    publish

    A sink used for publishing. Any elements connected to this sink is published to the cache.

    subscribe

    A source to subscribe to. All updates are pushed here.

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. val gatewayPublish: Sink[GatewayMessage[Any], NotUsed]
  9. val gatewaySubscribe: Source[GatewayMessage[Any], NotUsed]
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. implicit val mat: Materializer
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def publish(elem: CacheUpdate[Any]): Unit

    Publish a single element to this cache.

  17. val publish: Sink[CacheUpdate[Any], NotUsed]
  18. def publishMany(it: Iterable[CacheUpdate[Any]]): Unit

    Publish many elements to this cache.

  19. val subscribe: Source[(CacheUpdate[Any], CacheState), NotUsed]
  20. def subscribeAPI: Source[APIMessage, NotUsed]

    A source used to subscribe to APIMessages sent to this cache.

  21. def subscribeAPIActor(actor: ActorRef, completeMessage: Any)(specificEvent: Class[_ <: APIMessage]*): Unit

    Subscribe an actor to this cache using Sink.actorRef.

  22. def subscribeAPIActorWithAck(actor: ActorRef, initMessage: Any, ackMessage: Any, completeMessage: Any, failureMessage: (Throwable) ⇒ Any = Status.Failure)(specificEvent: Class[_ <: APIMessage]*): Unit

    Subscribe an actor to this cache using Sink.actorRefWithAck.

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped