Interface MessengerConnector
-
- All Superinterfaces:
MessengerConnectorMessageReceivedStatusEventListener
,MessengerConnectorMessageSender
,MessengerConnectorStatusSender
public interface MessengerConnector extends MessengerConnectorMessageSender, MessengerConnectorStatusSender, MessengerConnectorMessageReceivedStatusEventListener
This interface is an extension point to implement message retrieval from different sources to the novomind iAGENT system and also the delivery of the messages back to the source, after the message has been answered by the novomind iAGENT system.
Each implementation of the interfaceMessengerConnector
must be annotated with the annotationMessengerConnectorPlugin
to be loaded during runtime.- Since:
- 12.20
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(MessengerAccount messengerAccount, MessengerConnectorEventListener messengerConnectorEventListener, org.slf4j.Logger logger)
The method is called after an instance of the MessengerConnector has been instantiated.void
release()
The method is called before an instance of the MessengerConnector is being released or replaced by another e.g.-
Methods inherited from interface com.novomind.ecom.api.iagent.messenger.event.MessengerConnectorMessageReceivedStatusEventListener
messageReceivedFailed, messageReceivedSuccessful
-
Methods inherited from interface com.novomind.ecom.api.iagent.messenger.connector.MessengerConnectorMessageSender
sendAudioDataMessage, sendFileDataMessage, sendImageDataMessage, sendRawMessage, sendTextMessage, sendVideoDataMessage
-
Methods inherited from interface com.novomind.ecom.api.iagent.messenger.connector.MessengerConnectorStatusSender
sendReadStatus, sendTypingStatus
-
-
-
-
Method Detail
-
init
void init(MessengerAccount messengerAccount, MessengerConnectorEventListener messengerConnectorEventListener, org.slf4j.Logger logger)
The method is called after an instance of the MessengerConnector has been instantiated.- Parameters:
messengerAccount
- the messenger account that is running thisMessengerConnector
messengerConnectorEventListener
- the event listener for thisMessengerConnector
logger
- the logger of the messenger account running theMessengerConnector
- Since:
- 12.20
-
release
void release()
The method is called before an instance of the MessengerConnector is being released or replaced by another e.g. because of a change of messenger account configuration or system shutdown.- Since:
- 12.20
-
-