public abstract class BaseMessageSender extends Object implements Runnable, MessageSender
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
done |
protected BaseUIMAAsynchronousEngineCommon_impl |
engine |
protected Exception |
exception |
protected BlockingQueue<PendingMessage> |
messageQueue |
protected boolean |
workerThreadFailed |
| Constructor and Description |
|---|
BaseMessageSender(BaseUIMAAsynchronousEngineCommon_impl anEngine) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup() |
void |
doStop()
Stops the worker thread
|
boolean |
failed()
The uima ee client should call this method to check if there was a failure.
|
protected abstract String |
getDestinationEndpoint() |
abstract javax.jms.MessageProducer |
getMessageProducer() |
javax.jms.MessageProducer |
getMessageProducer(javax.jms.Destination destination) |
Exception |
getReasonForFailure()
Return the Exception that caused the failure in this worker thread
|
protected abstract void |
initializeProducer() |
void |
run()
Initializes jms message producer and starts the main thread.
|
abstract void |
setConnection(javax.jms.Connection connection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateBytesMessage, createTextMessageprotected BlockingQueue<PendingMessage> messageQueue
protected volatile boolean done
protected BaseUIMAAsynchronousEngineCommon_impl engine
protected volatile boolean workerThreadFailed
protected Exception exception
public BaseMessageSender(BaseUIMAAsynchronousEngineCommon_impl anEngine)
public abstract javax.jms.MessageProducer getMessageProducer()
getMessageProducer in interface MessageSenderprotected abstract String getDestinationEndpoint() throws Exception
Exceptionpublic abstract void setConnection(javax.jms.Connection connection)
setConnection in interface MessageSenderpublic void doStop()
doStop in interface MessageSenderpublic Exception getReasonForFailure()
getReasonForFailure in interface MessageSenderpublic boolean failed()
failed in interface MessageSenderpublic void run()
public javax.jms.MessageProducer getMessageProducer(javax.jms.Destination destination)
throws Exception
getMessageProducer in interface MessageSenderExceptionCopyright © 2016. All rights reserved.