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 Object
implements org.apache.activemq.advisory.ConsumerListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static longprotected javax.jms.Session -
Constructor Summary
ConstructorsConstructorDescriptionJmsEndpointConnection_impl(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap, Endpoint anEndpoint, AnalysisEngineController aController) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidclose()protected static booleanconnectionClosedOrFailed(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap) protected voidfinalize()protected Stringprotected StringbooleanisOpen()booleanvoidonConsumerEvent(org.apache.activemq.advisory.ConsumerEvent arg0) voidopen()voidjavax.jms.BytesMessageproduceByteMessage(byte[] aSerializedCAS) javax.jms.ObjectMessagejavax.jms.TextMessageproduceTextMessage(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(String endpoint) voidsetRetryEnabled(boolean retryEnabled) protected voidsetServerUri(String serverUri)
-
Field Details
-
producerSession
protected javax.jms.Session producerSession -
connectionCreationTimestamp
protected static long connectionCreationTimestamp
-
-
Constructor Details
-
JmsEndpointConnection_impl
public JmsEndpointConnection_impl(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap, Endpoint anEndpoint, AnalysisEngineController aController)
-
-
Method Details
-
isRetryEnabled
public boolean isRetryEnabled() -
setRetryEnabled
public void setRetryEnabled(boolean retryEnabled) -
isOpen
public boolean isOpen() -
connectionClosedOrFailed
protected static boolean connectionClosedOrFailed(JmsOutputChannel.BrokerConnectionEntry aBrokerDestinationMap) -
open
-
open
public void open(String brokerUri, String anEndpointName) throws AsynchAEException, ServiceShutdownException -
abort
public void abort() -
close
- Throws:
Exception
-
getEndpoint
-
setEndpoint
-
setDelegateEndpoint
-
getServerUri
-
setServerUri
-
produceTextMessage
- Throws:
AsynchAEException
-
produceByteMessage
- Throws:
AsynchAEException
-
produceObjectMessage
- 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
-