org.apache.servicemix.common
Class EndpointDeliveryChannel
java.lang.Object
org.apache.servicemix.common.EndpointDeliveryChannel
- All Implemented Interfaces:
- DeliveryChannel
public class EndpointDeliveryChannel
- extends Object
- implements DeliveryChannel
This class is a wrapper around an existing DeliveryChannel
that will be given to service engine endpoints so that
they are able to send messages and to interact with the
JBI container.
- Author:
- gnodet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EndpointDeliveryChannel
public EndpointDeliveryChannel(Endpoint endpoint)
throws MessagingException
- Throws:
MessagingException
accept
public MessageExchange accept()
throws MessagingException
- Specified by:
accept in interface DeliveryChannel
- Throws:
MessagingException
accept
public MessageExchange accept(long timeout)
throws MessagingException
- Specified by:
accept in interface DeliveryChannel
- Throws:
MessagingException
close
public void close()
throws MessagingException
- Specified by:
close in interface DeliveryChannel
- Throws:
MessagingException
createExchangeFactory
public MessageExchangeFactory createExchangeFactory()
- Specified by:
createExchangeFactory in interface DeliveryChannel
createExchangeFactory
public MessageExchangeFactory createExchangeFactory(QName interfaceName)
- Specified by:
createExchangeFactory in interface DeliveryChannel
createExchangeFactory
public MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
- Specified by:
createExchangeFactory in interface DeliveryChannel
createExchangeFactoryForService
public MessageExchangeFactory createExchangeFactoryForService(QName serviceName)
- Specified by:
createExchangeFactoryForService in interface DeliveryChannel
send
public void send(MessageExchange exchange)
throws MessagingException
- Specified by:
send in interface DeliveryChannel
- Throws:
MessagingException
sendSync
public boolean sendSync(MessageExchange exchange,
long timeout)
throws MessagingException
- Specified by:
sendSync in interface DeliveryChannel
- Throws:
MessagingException
sendSync
public boolean sendSync(MessageExchange exchange)
throws MessagingException
- Specified by:
sendSync in interface DeliveryChannel
- Throws:
MessagingException
Copyright © 2005-2008. All Rights Reserved.