Class JmsEndpointConnection_impl
- java.lang.Object
-
- org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl
-
- All Implemented Interfaces:
org.apache.activemq.advisory.ConsumerListener
public class JmsEndpointConnection_impl extends java.lang.Object implements org.apache.activemq.advisory.ConsumerListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static longconnectionCreationTimestampprotected javax.jms.SessionproducerSession
-
Constructor Summary
Constructors Constructor Description JmsEndpointConnection_impl(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap, Endpoint anEndpoint, AnalysisEngineController aController)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voidclose()protected static booleanconnectionClosedOrFailed(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap)protected voidfinalize()protected java.lang.StringgetEndpoint()protected java.lang.StringgetServerUri()booleanisOpen()booleanisRetryEnabled()voidonConsumerEvent(org.apache.activemq.advisory.ConsumerEvent arg0)voidopen()voidopen(java.lang.String brokerUri, java.lang.String anEndpointName)javax.jms.BytesMessageproduceByteMessage(byte[] aSerializedCAS)javax.jms.ObjectMessageproduceObjectMessage()javax.jms.TextMessageproduceTextMessage(java.lang.String aTextMessage)booleansend(javax.jms.Message aMessage, long msgSize, boolean startTimer)booleansend(javax.jms.Message aMessage, long msgSize, boolean startTimer, boolean failOnJMSException)protected voidsetDelegateEndpoint(Endpoint delegateEndpoint)protected voidsetEndpoint(java.lang.String endpoint)voidsetRetryEnabled(boolean retryEnabled)protected voidsetServerUri(java.lang.String serverUri)
-
-
-
Constructor Detail
-
JmsEndpointConnection_impl
public JmsEndpointConnection_impl(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap, Endpoint anEndpoint, AnalysisEngineController aController)
-
-
Method Detail
-
isRetryEnabled
public boolean isRetryEnabled()
-
setRetryEnabled
public void setRetryEnabled(boolean retryEnabled)
-
isOpen
public boolean isOpen()
-
connectionClosedOrFailed
protected static boolean connectionClosedOrFailed(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap)
-
open
public void open() throws AsynchAEException, ServiceShutdownException
-
open
public void open(java.lang.String brokerUri, java.lang.String anEndpointName) throws AsynchAEException, ServiceShutdownException
-
abort
public void abort()
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
getEndpoint
protected java.lang.String getEndpoint()
-
setEndpoint
protected void setEndpoint(java.lang.String endpoint)
-
setDelegateEndpoint
protected void setDelegateEndpoint(Endpoint delegateEndpoint)
-
getServerUri
protected java.lang.String getServerUri()
-
setServerUri
protected void setServerUri(java.lang.String serverUri)
-
produceTextMessage
public javax.jms.TextMessage produceTextMessage(java.lang.String aTextMessage) throws AsynchAEException- Throws:
AsynchAEException
-
produceByteMessage
public javax.jms.BytesMessage produceByteMessage(byte[] aSerializedCAS) throws AsynchAEException- Throws:
AsynchAEException
-
produceObjectMessage
public javax.jms.ObjectMessage produceObjectMessage() throws AsynchAEException- Throws:
AsynchAEException
-
send
public boolean send(javax.jms.Message aMessage, long msgSize, boolean startTimer)
-
send
public boolean send(javax.jms.Message aMessage, long msgSize, boolean startTimer, boolean failOnJMSException)
-
onConsumerEvent
public void onConsumerEvent(org.apache.activemq.advisory.ConsumerEvent arg0)
- Specified by:
onConsumerEventin interfaceorg.apache.activemq.advisory.ConsumerListener
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-