Interface ConnectorFactory
-
- All Superinterfaces:
TransportConfigurationHelper
public interface ConnectorFactory extends TransportConfigurationHelper
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.boolean
isReliable()
Indicates if connectors from this factory are reliable or not.-
Methods inherited from interface org.apache.activemq.artemis.api.core.TransportConfigurationHelper
getDefaults
-
-
-
-
Method Detail
-
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 or not connectors from this factory are reliable
-
-