Class AmqpClientInterceptor
- java.lang.Object
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteAccessor
-
- org.springframework.amqp.remoting.client.AmqpClientInterceptor
-
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
,Aware
,BeanClassLoaderAware
- Direct Known Subclasses:
AmqpProxyFactoryBean
@Deprecated public class AmqpClientInterceptor extends RemoteAccessor implements MethodInterceptor
Deprecated.will be removed in 3.0.0.MethodInterceptor
for accessing RMI-style AMQP services.- Since:
- 1.2
- Author:
- David Bilge, Gary Russell
- See Also:
AmqpInvokerServiceExporter
,AmqpProxyFactoryBean
,RemoteAccessException
-
-
Field Summary
-
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
-
-
Constructor Summary
Constructors Constructor Description AmqpClientInterceptor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AmqpTemplate
getAmqpTemplate()
Deprecated.RemoteInvocationFactory
getRemoteInvocationFactory()
Deprecated.String
getRoutingKey()
Deprecated.Object
invoke(MethodInvocation invocation)
Deprecated.void
setAmqpTemplate(AmqpTemplate amqpTemplate)
Deprecated.The AMQP template to be used for sending messages and receiving results.void
setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
Deprecated.Set the RemoteInvocationFactory to use for this accessor.void
setRoutingKey(String routingKey)
Deprecated.The routing key to send calls to the service with.-
Methods inherited from class org.springframework.remoting.support.RemoteAccessor
getServiceInterface, setServiceInterface
-
Methods inherited from class org.springframework.remoting.support.RemotingSupport
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
-
-
-
-
Method Detail
-
invoke
public Object invoke(MethodInvocation invocation) throws Throwable
Deprecated.- Specified by:
invoke
in interfaceMethodInterceptor
- Throws:
Throwable
-
getAmqpTemplate
public AmqpTemplate getAmqpTemplate()
Deprecated.
-
setAmqpTemplate
public void setAmqpTemplate(AmqpTemplate amqpTemplate)
Deprecated.The AMQP template to be used for sending messages and receiving results. This class is using "Request/Reply" for sending messages as described in the Spring-AMQP documentation.- Parameters:
amqpTemplate
- The amqp template.
-
getRoutingKey
public String getRoutingKey()
Deprecated.
-
setRoutingKey
public void setRoutingKey(String routingKey)
Deprecated.The routing key to send calls to the service with. Use this to route the messages to a specific queue on the broker. If not set, theAmqpTemplate
's default routing key will be used.This property is useful if you want to use the same AmqpTemplate to talk to multiple services.
- Parameters:
routingKey
- The routing key.
-
getRemoteInvocationFactory
public RemoteInvocationFactory getRemoteInvocationFactory()
Deprecated.
-
setRemoteInvocationFactory
public void setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
Deprecated.Set the RemoteInvocationFactory to use for this accessor. Default is aDefaultRemoteInvocationFactory
.A custom invocation factory can add further context information to the invocation, for example user credentials.
- Parameters:
remoteInvocationFactory
- The remote invocation factory.
-
-