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 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 configuration
      handler - the handler
      listener - the listener
      closeExecutor - the close executor
      threadPool - the thread pool
      scheduledThreadPool - 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