public class AMQPHessianProxyFactory extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
HessianProxyFactory.| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
serviceInterface |
| Constructor and Description |
|---|
AMQPHessianProxyFactory()
Creates the new proxy factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> T |
create(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
|
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.
|
String |
getRequestExchangeName(Class<?> cls)
Return the name of the request exchange for the service.
|
String |
getRequestQueueName(Class<?> cls)
Return the name of the request queue for the service.
|
com.caucho.hessian.io.SerializerFactory |
getSerializerFactory()
Gets the serializer factory.
|
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(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(Class<?> serviceInterface)
Set the interface implemented by the proxy.
|
protected Class<?> serviceInterface
public AMQPHessianProxyFactory()
public String getQueuePrefix()
public void setQueuePrefix(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 Class<?> getServiceInterface()
public void setServiceInterface(Class<?> serviceInterface)
serviceInterface - the interface the proxy must implementIllegalArgumentException - if serviceInterface is null or is not an interface typepublic <T> T create(Class<T> api)
api - the interfacepublic String getRequestExchangeName(Class<?> cls)
cls - public String getRequestQueueName(Class<?> cls)
cls - public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanCopyright © 2013. All Rights Reserved.