diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/RemotingService.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/RemotingService.java index e940c02f83..6079be4758 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/RemotingService.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/RemotingService.java @@ -20,7 +20,6 @@ import java.util.List; import java.util.Set; import org.apache.activemq.artemis.api.core.BaseInterceptor; -import org.apache.activemq.artemis.api.core.Interceptor; import org.apache.activemq.artemis.core.protocol.core.CoreRemotingConnection; import org.apache.activemq.artemis.core.security.ActiveMQPrincipal; import org.apache.activemq.artemis.spi.core.protocol.RemotingConnection; @@ -43,17 +42,17 @@ public interface RemotingService { ReusableLatch getConnectionCountLatch(); - void addIncomingInterceptor(Interceptor interceptor); + void addIncomingInterceptor(BaseInterceptor interceptor); List getIncomingInterceptors(); - void addOutgoingInterceptor(Interceptor interceptor); + void addOutgoingInterceptor(BaseInterceptor interceptor); List getOutgoinInterceptors(); - boolean removeIncomingInterceptor(Interceptor interceptor); + boolean removeIncomingInterceptor(BaseInterceptor interceptor); - boolean removeOutgoingInterceptor(Interceptor interceptor); + boolean removeOutgoingInterceptor(BaseInterceptor interceptor); void stop(boolean criticalError) throws Exception; diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java index 5b273c3bed..ab9de61f52 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java @@ -40,7 +40,6 @@ import org.apache.activemq.artemis.api.core.ActiveMQBuffer; import org.apache.activemq.artemis.api.core.ActiveMQException; import org.apache.activemq.artemis.api.core.ActiveMQInterruptedException; import org.apache.activemq.artemis.api.core.BaseInterceptor; -import org.apache.activemq.artemis.api.core.Interceptor; import org.apache.activemq.artemis.api.core.TransportConfiguration; import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.protocol.core.CoreRemotingConnection; @@ -525,7 +524,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle } @Override - public void addIncomingInterceptor(final Interceptor interceptor) { + public void addIncomingInterceptor(final BaseInterceptor interceptor) { incomingInterceptors.add(interceptor); updateProtocols(); @@ -537,7 +536,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle } @Override - public boolean removeIncomingInterceptor(final Interceptor interceptor) { + public boolean removeIncomingInterceptor(final BaseInterceptor interceptor) { if (incomingInterceptors.remove(interceptor)) { updateProtocols(); return true; @@ -548,7 +547,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle } @Override - public void addOutgoingInterceptor(final Interceptor interceptor) { + public void addOutgoingInterceptor(final BaseInterceptor interceptor) { outgoingInterceptors.add(interceptor); updateProtocols(); } @@ -559,7 +558,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle } @Override - public boolean removeOutgoingInterceptor(final Interceptor interceptor) { + public boolean removeOutgoingInterceptor(final BaseInterceptor interceptor) { if (outgoingInterceptors.remove(interceptor)) { updateProtocols(); return true; diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ServiceRegistry.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ServiceRegistry.java index 9cb1df1f45..dfa86b7622 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ServiceRegistry.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ServiceRegistry.java @@ -17,7 +17,6 @@ package org.apache.activemq.artemis.core.server; import org.apache.activemq.artemis.api.core.BaseInterceptor; -import org.apache.activemq.artemis.api.core.Interceptor; import org.apache.activemq.artemis.api.core.Pair; import org.apache.activemq.artemis.core.config.ConnectorServiceConfiguration; import org.apache.activemq.artemis.core.server.cluster.Transformer; @@ -55,7 +54,7 @@ public interface ServiceRegistry { */ Collection> getConnectorServices(List configs); - void addIncomingInterceptor(Interceptor interceptor); + void addIncomingInterceptor(BaseInterceptor interceptor); /** * Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances @@ -65,7 +64,7 @@ public interface ServiceRegistry { */ List getIncomingInterceptors(List classNames); - void addOutgoingInterceptor(Interceptor interceptor); + void addOutgoingInterceptor(BaseInterceptor interceptor); /** * Get a list of org.apache.activemq.artemis.api.core.BaseInterceptor instances diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServiceRegistryImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServiceRegistryImpl.java index 715d92fde2..d00e15ec13 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServiceRegistryImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServiceRegistryImpl.java @@ -17,7 +17,6 @@ package org.apache.activemq.artemis.core.server.impl; import org.apache.activemq.artemis.api.core.BaseInterceptor; -import org.apache.activemq.artemis.api.core.Interceptor; import org.apache.activemq.artemis.api.core.Pair; import org.apache.activemq.artemis.core.config.ConnectorServiceConfiguration; import org.apache.activemq.artemis.core.server.ActiveMQMessageBundle; @@ -118,7 +117,7 @@ public class ServiceRegistryImpl implements ServiceRegistry { } @Override - public void addIncomingInterceptor(Interceptor interceptor) { + public void addIncomingInterceptor(BaseInterceptor interceptor) { incomingInterceptors.add(interceptor); } @@ -132,7 +131,7 @@ public class ServiceRegistryImpl implements ServiceRegistry { } @Override - public void addOutgoingInterceptor(Interceptor interceptor) { + public void addOutgoingInterceptor(BaseInterceptor interceptor) { outgoingInterceptors.add(interceptor); }