Class AbstractAsyncStandaloneMessageReceiver
java.lang.Object
org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport
org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
org.springframework.ws.transport.support.AbstractAsyncStandaloneMessageReceiver
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle
- Direct Known Subclasses:
MailMessageReceiver
public abstract class AbstractAsyncStandaloneMessageReceiver
extends AbstractStandaloneMessageReceiver
implements org.springframework.beans.factory.BeanNameAware
Abstract base class for asynchronous standalone, server-side transport objects.
Contains a Spring
TaskExecutor, and various lifecycle callbacks.-
Field Summary
FieldsFields inherited from class WebServiceMessageReceiverObjectSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCallsAbstractStandaloneMessageReceiver.activate()when the BeanFactory initializes the receiver instance.protected org.springframework.core.task.TaskExecutorCreate a default TaskExecutor.protected voidExecutes the givenRunnablevia this receiver'sTaskExecutor.voidsetBeanName(String beanName) voidsetTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) Set the SpringTaskExecutorto use for running the listener threads.Methods inherited from class AbstractStandaloneMessageReceiver
activate, destroy, isActive, isRunning, onActivate, onShutdown, onStart, onStop, setAutoStartup, shutdown, start, stopMethods inherited from class SimpleWebServiceMessageReceiverObjectSupport
getMessageReceiver, handleConnection, setMessageReceiverMethods inherited from class WebServiceMessageReceiverObjectSupport
getMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactory
-
Field Details
-
DEFAULT_THREAD_NAME_PREFIX
Default thread name prefix.
-
-
Constructor Details
-
AbstractAsyncStandaloneMessageReceiver
public AbstractAsyncStandaloneMessageReceiver()
-
-
Method Details
-
setTaskExecutor
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) Set the SpringTaskExecutorto use for running the listener threads. Default isSimpleAsyncTaskExecutor, starting up a number of new threads.Specify an alternative task executor for integration with an existing thread pool, such as the
ThreadPoolTaskExecutor. -
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
afterPropertiesSet
Description copied from class:AbstractStandaloneMessageReceiverCallsAbstractStandaloneMessageReceiver.activate()when the BeanFactory initializes the receiver instance.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractStandaloneMessageReceiver- Throws:
Exception
-
createDefaultTaskExecutor
protected org.springframework.core.task.TaskExecutor createDefaultTaskExecutor()Create a default TaskExecutor. Called if no explicit TaskExecutor has been specified.The default implementation builds a
SimpleAsyncTaskExecutorwith the specified bean name (or the class name, if no bean name specified) as thread name prefix.- See Also:
-
execute
-