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
|
java.lang.String |
getBrokerUrl() |
java.lang.String |
getDestinationName() |
java.lang.String |
getEndpointName() |
javax.jms.Destination |
getListenerEndpoint() |
org.springframework.core.task.TaskExecutor |
getTaskExecutor() |
protected void |
handleListenerException(java.lang.Throwable t) |
protected void |
handleListenerSetupFailure(java.lang.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(java.lang.Object messageListener)
Intercept Spring call to inject application Pojo listener.
|
void |
setMessageSelector(java.lang.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(java.util.concurrent.ThreadPoolExecutor tpe) |
void |
stop() |
createDefaultTaskExecutor, doInitialize, doRescheduleTask, doShutdown, establishSharedConnection, getActiveConsumerCount, getCacheLevel, getConcurrentConsumers, getIdleConsumerLimit, getIdleTaskExecutionLimit, getMaxConcurrentConsumers, getMaxMessagesPerTask, getScheduledConsumerCount, initialize, isRegisteredWithDestination, messageReceived, noMessageReceived, refreshDestination, scheduleNewInvokerIfAppropriate, setCacheLevel, setCacheLevelName, setConcurrency, setIdleConsumerLimit, setIdleTaskExecutionLimit, setMaxConcurrentConsumers, setMaxMessagesPerTask, setRecoveryInterval, setTaskExecutor, sharedConnectionEnabled, sleepInbetweenRecoveryAttempts, start, startSharedConnection, stop, stopSharedConnection, validateConfigurationcreateConsumer, 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, setSubscriptionDurablecreateSharedConnection, doStart, doStop, getBeanName, getClientId, getPausedTaskCount, getPhase, getSharedConnection, isActive, isAutoStartup, isRunning, logRejectedTask, prepareSharedConnection, refreshSharedConnection, rescheduleTaskIfNecessary, resumePausedTasks, runningAllowed, setAutoStartup, setBeanName, setClientId, setPhase, shutdowngetDestinationResolver, isPubSubDomain, resolveDestinationName, setPubSubDomainconvertJmsAccessException, createConnection, createSession, getConnectionFactory, getSessionAcknowledgeMode, isClientAcknowledge, isSessionTransacted, setSessionAcknowledgeMode, setSessionAcknowledgeModeNamepublic 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(java.lang.Throwable t,
boolean alreadyHandled)
handleListenerSetupFailure in class org.springframework.jms.listener.DefaultMessageListenerContainerprotected void handleListenerException(java.lang.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(java.lang.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 java.lang.String getDestinationName()
getDestinationName in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic java.lang.String getEndpointName()
public java.lang.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 java.lang.Exception
java.lang.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(java.lang.String messageSelector)
setMessageSelector in class org.springframework.jms.listener.AbstractMessageListenerContainerpublic void shutdownTaskExecutor(java.util.concurrent.ThreadPoolExecutor tpe)
throws java.lang.InterruptedException
java.lang.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 © 2012. All Rights Reserved.