java.lang.Object
org.apache.activemq.artemis.spi.core.remoting.AbstractConnector
org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnector
All Implemented Interfaces:
Connector

public class InVMConnector extends AbstractConnector
  • Field Details

    • INVM_CONNECTOR_TYPE

      public static String INVM_CONNECTOR_TYPE
    • DEFAULT_CONFIG

      public static final Map<String,Object> DEFAULT_CONFIG
    • failOnCreateConnection

      public static volatile boolean failOnCreateConnection
    • numberOfFailures

      public static volatile int numberOfFailures
    • id

      protected final int id
    • executorFactory

      protected final OrderedExecutorFactory executorFactory
  • Constructor Details

  • Method Details

    • resetFailures

      public static void resetFailures()
    • resetThreadPool

      public static void resetThreadPool()
    • getAcceptor

      public Acceptor getAcceptor()
    • close

      public void close()
    • isStarted

      public boolean isStarted()
    • createConnection

      public Connection createConnection()
      Description copied from interface: Connector
      Create and return a connection from this connector.

      This method must NOT throw an exception if it fails to create the connection (e.g. network is not available), in this case it MUST return null

      Returns:
      The connection, or null if unable to create a connection (e.g. network is unavailable)
    • start

      public void start()
    • getHandler

      public BufferHandler getHandler()
    • disconnect

      public void disconnect(String connectionID)
    • internalCreateConnection

      protected Connection internalCreateConnection(BufferHandler handler, ClientConnectionLifeCycleListener listener, ArtemisExecutor serverExecutor)
    • isEquivalent

      public boolean isEquivalent(Map<String,Object> configuration)
      Description copied from interface: Connector
      If the configuration is equivalent to this connector, which means if the parameter configuration is used to create a connection to a target node, it will be the same node as of the connections made with this connector.
      Returns:
      true means the configuration is equivalent to the connector. false otherwise