public class UimaDefaultMessageListenerContainer
extends org.springframework.jms.listener.DefaultMessageListenerContainer
implements javax.jms.ExceptionListener
| Modifier and Type | Field and Description |
|---|---|
static boolean |
terminating |
CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, CACHE_SESSION, DEFAULT_RECOVERY_INTERVAL, DEFAULT_THREAD_NAME_PREFIXDEFAULT_RECEIVE_TIMEOUT| Constructor and Description |
|---|
UimaDefaultMessageListenerContainer() |
UimaDefaultMessageListenerContainer(boolean freeCasQueueListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
afterPropertiesSet(boolean propagate)
Called by Spring and some Uima AS components when all properties have been set.
|
void |
closeConnection()
Closes shares connection to a broker
|
void |
delegateStop() |
void |
destroy()
Spins a shutdown thread and stops Sprint and ActiveMQ threads.
|
void |
doDestroy()
Delegate shutdown to the super class
|
String |
getBrokerUrl() |
String |
getDestinationName() |
String |
getEndpointName() |
javax.jms.Destination |
getListenerEndpoint() |
org.springframework.core.task.TaskExecutor |
getTaskExecutor() |
protected void |
handleListenerException(Throwable t) |
protected void |
handleListenerSetupFailure(Throwable t,
boolean alreadyHandled)
This method is called by Spring when a listener fails
|
void |
initializeContainer() |
boolean |
isFreeCasQueueListener() |
void |
onException(javax.jms.JMSException arg0) |
protected void |
recoverAfterListenerSetupFailure() |
protected void |
refreshConnectionUntilSuccessful()
Overriden Spring's method that tries to recover from lost connection.
|
void |
setConcurrentConsumers(int concurrentConsumers)
Intercept Spring call to increment number of consumer threads.
|
void |
setConnectionFactory(javax.jms.ConnectionFactory aConnectionFactory) |
void |
setController(AnalysisEngineController aController) |
void |
setDestination(javax.jms.Destination aDestination) |
void |
setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver resolver) |
void |
setMessageListener(Object messageListener)
Intercept Spring call to inject application Pojo listener.
|
void |
setMessageSelector(String messageSelector) |
protected void |
setModifiedTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) |
void |
setTargetEndpoint(Endpoint anEndpoint) |
void |
setTaskExecutor(org.springframework.core.task.TaskExecutor aTaskExecutor)
Called by Spring to inject TaskExecutor
|
void |
setTerminating() |
void |
shutdownTaskExecutor(ThreadPoolExecutor tpe) |
void |
stop() |
createDefaultTaskExecutor, doInitialize, doRescheduleTask, doShutdown, establishSharedConnection, getActiveConsumerCount, getCacheLevel, getConcurrentConsumers, getIdleConsumerLimit, getIdleTaskExecutionLimit, getMaxConcurrentConsumers, getMaxMessagesPerTask, getScheduledConsumerCount, initialize, isRecovering, isRegisteredWithDestination, messageReceived, noMessageReceived, refreshDestination, scheduleNewInvokerIfAppropriate, setCacheLevel, setCacheLevelName, setConcurrency, setIdleConsumerLimit, setIdleTaskExecutionLimit, setMaxConcurrentConsumers, setMaxMessagesPerTask, setRecoveryInterval, setTaskExecutor, sharedConnectionEnabled, sleepInbetweenRecoveryAttempts, start, startSharedConnection, stop, stopSharedConnectioncreateConsumer, createListenerConsumer, doReceiveAndExecute, getConnection, getSession, getTransactionManager, isPubSubNoLocal, isSessionLocallyTransacted, receiveAndExecute, receiveMessage, setPubSubNoLocal, setReceiveTimeout, setSessionTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, shouldCommitAfterNoMessageReceivedcheckMessageListener, commitIfNecessary, doExecuteListener, doInvokeListener, doInvokeListener, executeListener, getDefaultSubscriptionName, getDestination, getDestinationDescription, getDurableSubscriptionName, getExceptionListener, getMessageListener, getMessageSelector, invokeErrorHandler, invokeExceptionListener, invokeListener, isAcceptMessagesWhileStopping, isExposeListenerSession, isSubscriptionDurable, rollbackIfNecessary, rollbackOnExceptionIfNecessary, setAcceptMessagesWhileStopping, setDestinationName, setDurableSubscriptionName, setErrorHandler, setExceptionListener, setExposeListenerSession, setSubscriptionDurable, validateConfigurationcreateSharedConnection, doStart, doStop, getBeanName, getClientId, getPausedTaskCount, getPhase, getSharedConnection, isActive, isAutoStartup, isRunning, logRejectedTask, prepareSharedConnection, refreshSharedConnection, rescheduleTaskIfNecessary, resumePausedTasks, runningAllowed, setAutoStartup, setBeanName, setClientId, setPhase, shutdowngetDestinationResolver, isPubSubDomain, resolveDestinationName, setPubSubDomainpublic UimaDefaultMessageListenerContainer()
public UimaDefaultMessageListenerContainer(boolean freeCasQueueListener)
protected void refreshConnectionUntilSuccessful()
refreshConnectionUntilSuccessful in class org.springframework.jms.listener.DefaultMessageListenerContainerprotected void recoverAfterListenerSetupFailure()
recoverAfterListenerSetupFailure in class org.springframework.jms.listener.DefaultMessageListenerContainerpublic void setTerminating()
public void setController(AnalysisEngineController aController)
protected void handleListenerSetupFailure(Throwable t, boolean alreadyHandled)
handleListenerSetupFailure in class org.springframework.jms.listener.DefaultMessageListenerContainerprotected void handleListenerException(Throwable t)
handleListenerException in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic void initializeContainer()
public void setConcurrentConsumers(int concurrentConsumers)
setConcurrentConsumers in class org.springframework.jms.listener.DefaultMessageListenerContainerpublic void setMessageListener(Object messageListener)
setMessageListener in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.jms.listener.AbstractJmsListeningContainerpublic void afterPropertiesSet(boolean propagate)
public String getDestinationName()
getDestinationName in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic String getEndpointName()
public String getBrokerUrl()
public void setConnectionFactory(javax.jms.ConnectionFactory aConnectionFactory)
setConnectionFactory in class org.springframework.jms.support.JmsAccessorpublic void setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver resolver)
setDestinationResolver in class org.springframework.jms.support.destination.JmsDestinationAccessorpublic void closeConnection()
throws Exception
Exceptionpublic void setDestination(javax.jms.Destination aDestination)
setDestination in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic javax.jms.Destination getListenerEndpoint()
public void onException(javax.jms.JMSException arg0)
onException in interface javax.jms.ExceptionListenerpublic void setTargetEndpoint(Endpoint anEndpoint)
public boolean isFreeCasQueueListener()
protected void setModifiedTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
public void doDestroy()
public void setMessageSelector(String messageSelector)
setMessageSelector in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic void shutdownTaskExecutor(ThreadPoolExecutor tpe) throws InterruptedException
InterruptedExceptionpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class org.springframework.jms.listener.AbstractJmsListeningContainerpublic void setTaskExecutor(org.springframework.core.task.TaskExecutor aTaskExecutor)
public org.springframework.core.task.TaskExecutor getTaskExecutor()
public void delegateStop()
public void stop()
throws org.springframework.jms.JmsException
stop in interface org.springframework.context.Lifecyclestop in class org.springframework.jms.listener.AbstractJmsListeningContainerorg.springframework.jms.JmsExceptionCopyright © 2016. All rights reserved.