Interface ProtocolManagerFactory<P extends BaseInterceptor>
- All Known Implementing Classes:
AbstractProtocolManagerFactory,CoreProtocolManagerFactory
public interface ProtocolManagerFactory<P extends BaseInterceptor>
-
Method Summary
Modifier and TypeMethodDescriptioncreateProtocolManager(ActiveMQServer server, Map<String, Object> parameters, List<BaseInterceptor> incomingInterceptors, List<BaseInterceptor> outgoingInterceptors) When you create the ProtocolManager, you should filter out any interceptors that won't belong to this Protocol.filterInterceptors(List<BaseInterceptor> interceptors) This should get the entire list and only return the ones this factory can deal withString[]voidloadProtocolServices(ActiveMQServer server, List<ActiveMQComponent> services) voidupdateProtocolServices(ActiveMQServer server, List<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.
-
Method Details
-
getPersister
-
createProtocolManager
ProtocolManager createProtocolManager(ActiveMQServer server, Map<String, Object> parameters, List<BaseInterceptor> incomingInterceptors, List<BaseInterceptor> outgoingInterceptors) throws ExceptionWhen you create the ProtocolManager, you should filter out any interceptors that won't belong to this Protocol. For example don't send any core InterceptorsInterceptorto Stomp * * *- Throws:
Exception
-
filterInterceptors
This should get the entire list and only return the ones this factory can deal with -
getProtocols
String[] getProtocols() -
getModuleName
String getModuleName() -
loadProtocolServices
-
updateProtocolServices
void updateProtocolServices(ActiveMQServer server, List<ActiveMQComponent> services) throws Exception Provides an entry point for the server to trigger the protocol manager factory to update its protocol services based on updates to server configuration.- 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.
-