InMemoryStorage

class InMemoryStorage(amplitude: Amplitude) : Storage

Functions

Link copied to clipboard
open suspend override fun getEventsString(content: Any): String
Link copied to clipboard
open override fun getResponseHandler(eventPipeline: EventPipeline, configuration: Configuration, scope: CoroutineScope, dispatcher: CoroutineDispatcher, events: Any, eventsString: String): ResponseHandler
Link copied to clipboard
open override fun read(key: Storage.Constants): String?
Link copied to clipboard
open override fun readEventsContent(): List<Any>
Link copied to clipboard
fun removeEvents()
Link copied to clipboard
open suspend override fun rollover()
Link copied to clipboard
open suspend override fun write(key: Storage.Constants, value: String)
Link copied to clipboard
open suspend override fun writeEvent(event: BaseEvent)

Properties

Link copied to clipboard
val amplitude: Amplitude
Link copied to clipboard
val eventsBuffer: MutableList<BaseEvent>
Link copied to clipboard
val eventsListLock: Any
Link copied to clipboard
val valuesMap: ConcurrentHashMap<String, String>