Package ai.tock.bot.connector
Class ConnectorCallbackBase
-
- All Implemented Interfaces:
-
ai.tock.bot.connector.ConnectorCallback
public class ConnectorCallbackBase implements ConnectorCallback
Base implementation of ConnectorCallback - add logging and RequestTimer monitoring.
-
-
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 StringgetApplicationId()The application id. final ConnectorTypegetConnectorType()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. -
-
Constructor Detail
-
ConnectorCallbackBase
ConnectorCallbackBase(String applicationId, ConnectorType connectorType)
-
-
Method Detail
-
getApplicationId
String getApplicationId()
The application id.
-
getConnectorType
final ConnectorType getConnectorType()
-
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.
-
-
-
-