public class AMQPHessianProxyFactory
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
HessianProxyFactory.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
serviceInterface |
| Constructor and Description |
|---|
AMQPHessianProxyFactory()
Creates the new proxy factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> T |
create(java.lang.Class<T> api)
Creates a new proxy from the specified interface.
|
void |
destroy()
Destroys the reply listener
|
org.springframework.amqp.rabbit.connection.ConnectionFactory |
getConnectionFactory()
Get the connectionFactory
|
java.lang.String |
getQueuePrefix()
Returns the prefix of the queue that receives the hessian requests.
|
long |
getReadTimeout()
Returns the socket timeout on requests in milliseconds.
|
com.caucho.hessian.io.HessianRemoteResolver |
getRemoteResolver()
Returns the remote resolver.
|
java.lang.String |
getRequestExchangeName(java.lang.Class<?> cls)
Return the name of the request exchange for the service.
|
java.lang.String |
getRequestQueueName(java.lang.Class<?> cls)
Return the name of the request queue for the service.
|
com.caucho.hessian.io.SerializerFactory |
getSerializerFactory()
Gets the serializer factory.
|
java.lang.Class<?> |
getServiceInterface()
Get the service interface
|
org.springframework.amqp.rabbit.core.RabbitTemplate |
getTemplate()
Get the RabbitMQ template
|
boolean |
isCompressed()
Indicates if the requests/responses should be compressed.
|
boolean |
isDebug()
Gets the debug mode.
|
boolean |
isOverloadEnabled()
Returns true if overloaded methods are allowed (using mangling)
|
void |
setCompressed(boolean compressed)
Specifies if the requests/responses should be compressed.
|
void |
setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Set the connectionFactory
|
void |
setDebug(boolean isDebug)
Sets the debug mode.
|
void |
setHessian2Reply(boolean isHessian2)
True if the proxy can read Hessian 2 responses.
|
void |
setHessian2Request(boolean isHessian2)
True if the proxy should send Hessian 2 requests.
|
void |
setOverloadEnabled(boolean isOverloadEnabled)
set true if overloaded methods are allowed (using mangling)
|
void |
setQueuePrefix(java.lang.String queuePrefix)
Sets the prefix of the queue that receives the hessian requests.
|
void |
setReadTimeout(long timeout)
Sets the socket timeout on requests in milliseconds.
|
void |
setSerializerFactory(com.caucho.hessian.io.SerializerFactory factory)
Sets the serializer factory.
|
void |
setServiceInterface(java.lang.Class<?> serviceInterface)
Set the interface implemented by the proxy.
|
public AMQPHessianProxyFactory()
public java.lang.String getQueuePrefix()
public void setQueuePrefix(java.lang.String queuePrefix)
public void setDebug(boolean isDebug)
public boolean isDebug()
public boolean isOverloadEnabled()
public void setOverloadEnabled(boolean isOverloadEnabled)
public long getReadTimeout()
public void setReadTimeout(long timeout)
public boolean isCompressed()
public void setCompressed(boolean compressed)
public void setHessian2Reply(boolean isHessian2)
public void setHessian2Request(boolean isHessian2)
public com.caucho.hessian.io.HessianRemoteResolver getRemoteResolver()
public void setSerializerFactory(com.caucho.hessian.io.SerializerFactory factory)
public com.caucho.hessian.io.SerializerFactory getSerializerFactory()
public org.springframework.amqp.rabbit.connection.ConnectionFactory getConnectionFactory()
public void setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
connectionFactory - public org.springframework.amqp.rabbit.core.RabbitTemplate getTemplate()
public java.lang.Class<?> getServiceInterface()
public void setServiceInterface(java.lang.Class<?> serviceInterface)
serviceInterface - the interface the proxy must implementjava.lang.IllegalArgumentException - if serviceInterface is null or is not an interface typepublic <T> T create(java.lang.Class<T> api)
api - the interfacepublic java.lang.String getRequestExchangeName(java.lang.Class<?> cls)
cls - public java.lang.String getRequestQueueName(java.lang.Class<?> cls)
cls - public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.ExceptionCopyright © 2013. All Rights Reserved.