tock / ai.tock.bot.connector / ConnectorCallback

ConnectorCallback

interface ConnectorCallback (source)

Used by connector implementations to check lifecycle of an user event.

Properties

applicationId

The application id.

abstract val applicationId: String

Functions

eventAnswered

Called by ConnectorController.handle when the event is answered.

abstract fun eventAnswered(event: Event): Unit

eventSkipped

Called by ConnectorController.handle when the event is not handled.

abstract fun eventSkipped(event: Event): Unit

exceptionThrown

Called by ConnectorController.handle when an exception is thrown.

abstract fun exceptionThrown(event: Event, throwable: Throwable): Unit

userLocked

Called by ConnectorController.handle when the user is locked.

abstract fun userLocked(event: Event): Unit

userLockReleased

Called by ConnectorController.handle when the user lock is released.

abstract fun userLockReleased(event: Event): Unit

Inheritors

ConnectorCallbackBase

Base implementation of ConnectorCallback - add logging and RequestTimer monitoring.

open class ConnectorCallbackBase : ConnectorCallback