Package com.boomi.connector.api.listen
Interface ListenConnector<M extends ListenManager>
-
- Type Parameters:
M
- the type ofListenManager
used by this connector.
- All Superinterfaces:
Connector
- All Known Implementing Classes:
BaseListenConnector
,BrowserlessListenConnector
,SimpleListenConnector
,SimplePollingConnector
,SimpleUnmanagedListenConnector
,UnmanagedListenConnector
public interface ListenConnector<M extends ListenManager> extends Connector
EnhancedConnector
which provides factory methods to createListenOperation
andListenManager
instances. Connector developers can implement this instead of or in addition to the baseConnector
interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M
createListenManager(ConnectorContext context)
Creates a newListenManager
instance using the providedConnectorContext
.ListenOperation<M>
createListenOperation(OperationContext context)
Creates a new listen operation using the providedOperationContext
.-
Methods inherited from interface com.boomi.connector.api.Connector
createBrowser, createOperation, initialize
-
-
-
-
Method Detail
-
createListenOperation
ListenOperation<M> createListenOperation(OperationContext context)
Creates a new listen operation using the providedOperationContext
. An operation instance will be created for each listener process and the correspondingListenOperation.start(Listener, ListenManager)
andListenOperation.stop()
methods will be invoked when the listener process is started/stopped.- Parameters:
context
- the operation context- Returns:
- listen operation instance. must be non-null.
-
createListenManager
M createListenManager(ConnectorContext context)
Creates a newListenManager
instance using the providedConnectorContext
. A manager instance is created for each connection with associatedListenOperation
instances. The manager will be started the first time a listener is started for the connection and stopped only when all of the listeners for that connection have been stopped.- Parameters:
context
- contextual information about the container, connector, and connection- Returns:
- the listen manager instance. must be non-null.
-
-