org.apache.activemq.camel
Class CamelDestination
java.lang.Object
org.apache.activemq.camel.CamelDestination
- All Implemented Interfaces:
- javax.jms.Destination, org.apache.activemq.CustomDestination, org.apache.camel.CamelContextAware
- Direct Known Subclasses:
- CamelQueue, CamelTopic
public class CamelDestination
- extends Object
- implements org.apache.activemq.CustomDestination, org.apache.camel.CamelContextAware
|
Method Summary |
javax.jms.MessageConsumer |
createConsumer(org.apache.activemq.ActiveMQSession session,
String messageSelector)
|
javax.jms.MessageConsumer |
createConsumer(org.apache.activemq.ActiveMQSession session,
String messageSelector,
boolean noLocal)
|
javax.jms.TopicSubscriber |
createDurableSubscriber(org.apache.activemq.ActiveMQSession session,
String name,
String messageSelector,
boolean noLocal)
|
javax.jms.MessageProducer |
createProducer(org.apache.activemq.ActiveMQSession session)
|
javax.jms.TopicPublisher |
createPublisher(org.apache.activemq.ActiveMQSession session)
|
javax.jms.QueueReceiver |
createReceiver(org.apache.activemq.ActiveMQSession session,
String messageSelector)
|
javax.jms.QueueSender |
createSender(org.apache.activemq.ActiveMQSession session)
|
javax.jms.TopicSubscriber |
createSubscriber(org.apache.activemq.ActiveMQSession session,
String messageSelector,
boolean noLocal)
|
org.apache.camel.component.jms.JmsBinding |
getBinding()
|
org.apache.camel.CamelContext |
getCamelContext()
|
org.apache.camel.Endpoint |
getEndpoint()
|
String |
getUri()
|
protected org.apache.camel.CamelContext |
resolveCamelContext(org.apache.activemq.ActiveMQSession session)
|
protected org.apache.camel.Endpoint |
resolveEndpoint(org.apache.activemq.ActiveMQSession session)
Resolves the Camel Endpoint for this destination |
void |
setBinding(org.apache.camel.component.jms.JmsBinding binding)
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext)
|
void |
setEndpoint(org.apache.camel.Endpoint endpoint)
|
void |
setUri(String uri)
|
String |
toString()
|
CamelDestination
public CamelDestination()
CamelDestination
public CamelDestination(String uri)
toString
public String toString()
- Overrides:
toString in class Object
createConsumer
public javax.jms.MessageConsumer createConsumer(org.apache.activemq.ActiveMQSession session,
String messageSelector)
- Specified by:
createConsumer in interface org.apache.activemq.CustomDestination
createConsumer
public javax.jms.MessageConsumer createConsumer(org.apache.activemq.ActiveMQSession session,
String messageSelector,
boolean noLocal)
- Specified by:
createConsumer in interface org.apache.activemq.CustomDestination
createSubscriber
public javax.jms.TopicSubscriber createSubscriber(org.apache.activemq.ActiveMQSession session,
String messageSelector,
boolean noLocal)
- Specified by:
createSubscriber in interface org.apache.activemq.CustomDestination
createDurableSubscriber
public javax.jms.TopicSubscriber createDurableSubscriber(org.apache.activemq.ActiveMQSession session,
String name,
String messageSelector,
boolean noLocal)
- Specified by:
createDurableSubscriber in interface org.apache.activemq.CustomDestination
createReceiver
public javax.jms.QueueReceiver createReceiver(org.apache.activemq.ActiveMQSession session,
String messageSelector)
- Specified by:
createReceiver in interface org.apache.activemq.CustomDestination
createProducer
public javax.jms.MessageProducer createProducer(org.apache.activemq.ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createProducer in interface org.apache.activemq.CustomDestination
- Throws:
javax.jms.JMSException
createPublisher
public javax.jms.TopicPublisher createPublisher(org.apache.activemq.ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createPublisher in interface org.apache.activemq.CustomDestination
- Throws:
javax.jms.JMSException
createSender
public javax.jms.QueueSender createSender(org.apache.activemq.ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createSender in interface org.apache.activemq.CustomDestination
- Throws:
javax.jms.JMSException
getUri
public String getUri()
setUri
public void setUri(String uri)
getEndpoint
public org.apache.camel.Endpoint getEndpoint()
setEndpoint
public void setEndpoint(org.apache.camel.Endpoint endpoint)
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext in interface org.apache.camel.CamelContextAware
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware
getBinding
public org.apache.camel.component.jms.JmsBinding getBinding()
setBinding
public void setBinding(org.apache.camel.component.jms.JmsBinding binding)
resolveEndpoint
protected org.apache.camel.Endpoint resolveEndpoint(org.apache.activemq.ActiveMQSession session)
- Resolves the Camel Endpoint for this destination
- Returns:
resolveCamelContext
protected org.apache.camel.CamelContext resolveCamelContext(org.apache.activemq.ActiveMQSession session)
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.