Class NettyConnectorFactory
java.lang.Object
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory
- All Implemented Interfaces:
TransportConfigurationHelper,ConnectorFactory
-
Constructor Summary
Constructors -
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.booleansetServerConnector(boolean serverConnector)
-
Constructor Details
-
NettyConnectorFactory
public NettyConnectorFactory()
-
-
Method Details
-
isServerConnector
public boolean isServerConnector() -
setServerConnector
-
createConnector
public Connector createConnector(Map<String, Object> configuration, BufferHandler handler, ClientConnectionLifeCycleListener listener, Executor closeExecutor, Executor threadPool, ScheduledExecutorService scheduledThreadPool, ClientProtocolManager protocolManager) Description copied from interface:ConnectorFactorycreates a new instance of a connector.- Specified by:
createConnectorin interfaceConnectorFactory- Parameters:
configuration- the configurationhandler- the handlerlistener- the listenercloseExecutor- the close executorthreadPool- the thread poolscheduledThreadPool- the scheduled thread pool- Returns:
- a new connector
-
isReliable
public boolean isReliable()Description copied from interface:ConnectorFactoryIndicates if connectors from this factory are reliable or not. If a connector is reliable then connection monitoring (i.e. pings/pongs) will be disabled.- Specified by:
isReliablein interfaceConnectorFactory- Returns:
- whether connectors from this factory are reliable
-
getDefaults
- Specified by:
getDefaultsin interfaceTransportConfigurationHelper
-