Interface ServiceRegistry

  • All Known Implementing Classes:
    ServiceRegistryImpl

    public interface ServiceRegistry
    A holder for common services leveraged by the broker.
    • Method Detail

      • setPageExecutorService

        void setPageExecutorService​(ExecutorService executorService)
        Notice that if you want to provide your own PageExecutor, you should limit the number of threads to the number of parallel reads you want to perform on paging
      • setExecutorService

        void setExecutorService​(ExecutorService executorService)
      • setIOExecutorService

        void setIOExecutorService​(ExecutorService ioExecutorService)
      • getConnectorService

        ConnectorServiceFactory getConnectorService​(ConnectorServiceConfiguration configuration)
        Get connector service for a given configuration.
        Parameters:
        configuration - The connector service configuration.
        Returns:
        an instance of the connector service factory.
      • addIncomingInterceptor

        void addIncomingInterceptor​(BaseInterceptor interceptor)
      • getIncomingInterceptors

        List<BaseInterceptor> getIncomingInterceptors​(List<String> classNames)
        Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances
        Parameters:
        classNames -
        Returns:
      • addOutgoingInterceptor

        void addOutgoingInterceptor​(BaseInterceptor interceptor)
      • getOutgoingInterceptors

        List<BaseInterceptor> getOutgoingInterceptors​(List<String> classNames)
        Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances
        Parameters:
        classNames -
        Returns:
      • getDivertTransformer

        Transformer getDivertTransformer​(String name,
                                         TransformerConfiguration transformerConfiguration)
        Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a divert
        Parameters:
        name - the name of divert for which the transformer will be used
        transformerConfiguration - the transformer configuration
        Returns:
      • addDivertTransformer

        void addDivertTransformer​(String name,
                                  Transformer transformer)
      • removeDivertTransformer

        void removeDivertTransformer​(String name)
      • getBridgeTransformer

        Transformer getBridgeTransformer​(String name,
                                         TransformerConfiguration transformerConfiguration)
        Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for a bridge
        Parameters:
        name - the name of bridge for which the transformer will be used
        transformerConfiguration - the transformer configuration
        Returns:
      • addBridgeTransformer

        void addBridgeTransformer​(String name,
                                  Transformer transformer)
      • getFederationTransformer

        Transformer getFederationTransformer​(String name,
                                             TransformerConfiguration transformerConfiguration)
        Get an instance of org.apache.activemq.artemis.core.server.transformer.Transformer for federation
        Parameters:
        name - the name of bridge for which the transformer will be used
        transformerConfiguration - the transformer configuration
        Returns:
      • addFederationTransformer

        void addFederationTransformer​(String name,
                                      Transformer transformer)
      • getAcceptorFactory

        AcceptorFactory getAcceptorFactory​(String name,
                                           String className)
        Get an instance of org.apache.activemq.artemis.spi.core.remoting.AcceptorFactory
        Parameters:
        name - the name of acceptor for which the factory will be used
        className - the fully qualified name of the factory implementation (can be null)
        Returns: