-
- All Implemented Interfaces:
-
ai.tock.bot.connector.ConnectorCallback
public class ConnectorCallbackBase implements ConnectorCallback
Base implementation of ConnectorCallback - add logging and RequestTimer monitoring.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConnectorCallbackBase.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringapplicationIdprivate final ConnectorTypeconnectorType
-
Constructor Summary
Constructors Constructor Description ConnectorCallbackBase(String applicationId, ConnectorType connectorType)
-
Method Summary
Modifier and Type Method Description UnituserLocked(Event event)Called by ConnectorController. UnituserLockReleased(Event event)Called by ConnectorController. UniteventSkipped(Event event)Called by ConnectorController. UniteventAnswered(Event event)Called by ConnectorController. UnitexceptionThrown(Event event, Throwable throwable)Called by ConnectorController. StringgetApplicationId()The application id. final ConnectorTypegetConnectorType()-
-
Constructor Detail
-
ConnectorCallbackBase
ConnectorCallbackBase(String applicationId, ConnectorType connectorType)
-
-
Method Detail
-
userLocked
Unit userLocked(Event event)
Called by ConnectorController.handle when the user is locked.
-
userLockReleased
Unit userLockReleased(Event event)
Called by ConnectorController.handle when the user lock is released.
-
eventSkipped
Unit eventSkipped(Event event)
Called by ConnectorController.handle when the event is not handled.
-
eventAnswered
Unit eventAnswered(Event event)
Called by ConnectorController.handle when the event is answered.
-
exceptionThrown
Unit exceptionThrown(Event event, Throwable throwable)
Called by ConnectorController.handle when an exception is thrown.
-
getApplicationId
String getApplicationId()
The application id.
-
getConnectorType
final ConnectorType getConnectorType()
-
-
-
-