org.apache.activemq.camel
Class CamelDestination
java.lang.Object
org.apache.activemq.camel.CamelDestination
- All Implemented Interfaces:
- javax.jms.Destination, CustomDestination, org.apache.camel.CamelContextAware
- Direct Known Subclasses:
- CamelQueue, CamelTopic
public class CamelDestination
- extends java.lang.Object
- implements CustomDestination, org.apache.camel.CamelContextAware
- Version:
- $Revision: $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CamelDestination
public CamelDestination()
CamelDestination
public CamelDestination(java.lang.String uri)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
createConsumer
public javax.jms.MessageConsumer createConsumer(ActiveMQSession session,
java.lang.String messageSelector)
- Specified by:
createConsumer in interface CustomDestination
createConsumer
public javax.jms.MessageConsumer createConsumer(ActiveMQSession session,
java.lang.String messageSelector,
boolean noLocal)
- Specified by:
createConsumer in interface CustomDestination
createSubscriber
public javax.jms.TopicSubscriber createSubscriber(ActiveMQSession session,
java.lang.String messageSelector,
boolean noLocal)
- Specified by:
createSubscriber in interface CustomDestination
createDurableSubscriber
public javax.jms.TopicSubscriber createDurableSubscriber(ActiveMQSession session,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
- Specified by:
createDurableSubscriber in interface CustomDestination
createReceiver
public javax.jms.QueueReceiver createReceiver(ActiveMQSession session,
java.lang.String messageSelector)
- Specified by:
createReceiver in interface CustomDestination
createProducer
public javax.jms.MessageProducer createProducer(ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createProducer in interface CustomDestination
- Throws:
javax.jms.JMSException
createPublisher
public javax.jms.TopicPublisher createPublisher(ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createPublisher in interface CustomDestination
- Throws:
javax.jms.JMSException
createSender
public javax.jms.QueueSender createSender(ActiveMQSession session)
throws javax.jms.JMSException
- Specified by:
createSender in interface CustomDestination
- Throws:
javax.jms.JMSException
getUri
public java.lang.String getUri()
setUri
public void setUri(java.lang.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(ActiveMQSession session)
- Resolves the Camel Endpoint for this destination
- Returns:
resolveCamelContext
protected org.apache.camel.CamelContext resolveCamelContext(ActiveMQSession session)
Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.