
com.amplitude.eventbridge.EventBridgeContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics-core Show documentation
Show all versions of analytics-core Show documentation
Amplitude Kotlin Core library
The newest version!
package com.amplitude.eventbridge
/**
* Container of EventBridge
*/
class EventBridgeContainer {
companion object {
private val instancesLock = Any()
private val instances = mutableMapOf()
@JvmStatic
fun getInstance(instanceName: String): EventBridgeContainer {
return synchronized(instancesLock) {
instances.getOrPut(instanceName) {
EventBridgeContainer()
}
}
}
}
val eventBridge: EventBridge = EventBridgeImpl()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy