case class APIMessageCacheUpdate[Data](data: Data, sendEvent: (CacheState) => List[APIMessage], handler: CacheHandler[Data], registry: CacheTypeRegistry, dispatch: Dispatch[_]) extends CacheEvent with Product with Serializable
An event that should publish an APIMessage.
- Data
The data it contains.
- data
The data.
- sendEvent
A function to gather the needed variables to send the event.
- handler
The handler to process the data of this event with.
- registry
The handler registry that the event will use to update the snapshot.
- dispatch
The low level message that created this update.
- Source
- cacheUpdates.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- APIMessageCacheUpdate
- Serializable
- Product
- Equals
- CacheEvent
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new APIMessageCacheUpdate(data: Data, sendEvent: (CacheState) => List[APIMessage], handler: CacheHandler[Data], registry: CacheTypeRegistry, dispatch: Dispatch[_])
- data
The data.
- sendEvent
A function to gather the needed variables to send the event.
- handler
The handler to process the data of this event with.
- registry
The handler registry that the event will use to update the snapshot.
- dispatch
The low level message that created this update.
Value Members
- val data: Data
- val dispatch: Dispatch[_]
- val handler: CacheHandler[Data]
- def process(builder: CacheSnapshotBuilder): Unit
Updates a ackcord.cachehandlers.CacheSnapshotBuilder according to this event.
Updates a ackcord.cachehandlers.CacheSnapshotBuilder according to this event.
- Definition Classes
- APIMessageCacheUpdate → CacheEvent
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val registry: CacheTypeRegistry
- val sendEvent: (CacheState) => List[APIMessage]