Class AbstractProtocolManagerFactory<P extends org.apache.activemq.artemis.api.core.BaseInterceptor>
java.lang.Object
org.apache.activemq.artemis.spi.core.protocol.AbstractProtocolManagerFactory<P>
- All Implemented Interfaces:
ProtocolManagerFactory<P>
public abstract class AbstractProtocolManagerFactory<P extends org.apache.activemq.artemis.api.core.BaseInterceptor>
extends Object
implements ProtocolManagerFactory<P>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninternalFilterInterceptors(Class<P> type, List<? extends org.apache.activemq.artemis.api.core.BaseInterceptor> listIn) This method exists because Java templates won't store the type of P at runtime.voidloadProtocolServices(org.apache.activemq.artemis.core.server.ActiveMQServer server, List<org.apache.activemq.artemis.core.server.ActiveMQComponent> services) voidupdateProtocolServices(org.apache.activemq.artemis.core.server.ActiveMQServer server, List<org.apache.activemq.artemis.core.server.ActiveMQComponent> services) Provides an entry point for the server to trigger the protocol manager factory to update its protocol services based on updates to server configuration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProtocolManagerFactory
createProtocolManager, filterInterceptors, getModuleName, getPersister, getProtocols
-
Constructor Details
-
AbstractProtocolManagerFactory
public AbstractProtocolManagerFactory()
-
-
Method Details
-
internalFilterInterceptors
protected List<P> internalFilterInterceptors(Class<P> type, List<? extends org.apache.activemq.artemis.api.core.BaseInterceptor> listIn) This method exists because Java templates won't store the type of P at runtime. So it's not possible to write a generic method with having the Class Type. This will serve as a tool for sub classes to filter properly, -
loadProtocolServices
public void loadProtocolServices(org.apache.activemq.artemis.core.server.ActiveMQServer server, List<org.apache.activemq.artemis.core.server.ActiveMQComponent> services) - Specified by:
loadProtocolServicesin interfaceProtocolManagerFactory<P extends org.apache.activemq.artemis.api.core.BaseInterceptor>
-
updateProtocolServices
public void updateProtocolServices(org.apache.activemq.artemis.core.server.ActiveMQServer server, List<org.apache.activemq.artemis.core.server.ActiveMQComponent> services) throws Exception Description copied from interface:ProtocolManagerFactoryProvides an entry point for the server to trigger the protocol manager factory to update its protocol services based on updates to server configuration.- Specified by:
updateProtocolServicesin interfaceProtocolManagerFactory<P extends org.apache.activemq.artemis.api.core.BaseInterceptor>- Parameters:
server- The service instance that has triggered this updateservices- The protocol services that were previously registered (mutable).- Throws:
Exception- can throw an exception if an error occurs while updating or adding protocol services from configuration updates.
-