Interface ConnectorFactory
- All Superinterfaces:
TransportConfigurationHelper
- All Known Implementing Classes:
InVMConnectorFactory,NettyConnectorFactory
A ConnectorFactory is used by the client for creating connectors.
A Connector is used to connect to an org.apache.activemq.artemis.spi.core.remoting.Acceptor.
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnector(Map<String, Object> configuration, BufferHandler handler, ClientConnectionLifeCycleListener listener, Executor closeExecutor, Executor threadPool, ScheduledExecutorService scheduledThreadPool, ClientProtocolManager protocolManager) creates a new instance of a connector.booleanIndicates if connectors from this factory are reliable or not.Methods inherited from interface org.apache.activemq.artemis.api.core.TransportConfigurationHelper
getDefaults
-
Method Details
-
createConnector
Connector createConnector(Map<String, Object> configuration, BufferHandler handler, ClientConnectionLifeCycleListener listener, Executor closeExecutor, Executor threadPool, ScheduledExecutorService scheduledThreadPool, ClientProtocolManager protocolManager) creates a new instance of a connector.- Parameters:
configuration- the configurationhandler- the handlerlistener- the listenercloseExecutor- the close executorthreadPool- the thread poolscheduledThreadPool- the scheduled thread pool- Returns:
- a new connector
-
isReliable
boolean isReliable()Indicates if connectors from this factory are reliable or not. If a connector is reliable then connection monitoring (i.e. pings/pongs) will be disabled.- Returns:
- whether connectors from this factory are reliable
-