override fun start()

in amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/ingestion/DefaultEventReporter.kt [34:53]


    override fun start() {
        if (isStarted || ingestionConfiguration.disabled) {
            return
        }

        isStarted = true

        try {
            timer.scheduleAtFixedRate(
                object : TimerTask() {
                    override fun run() = eventBuffer.process()
                },
                ingestionConfiguration.flushIntervalMs,
                ingestionConfiguration.flushIntervalMs
            )
        } catch (error: Error) {
            logger.error(TAG, "Failed to start timer for event buffer to process")
            isStarted = false
        }
    }