|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeliveryChannel
Bi-directional communication channel used to interact with the Normalized Message Service.
Method Summary | |
---|---|
MessageExchange |
accept()
Blocking call used to service a MessageExchange instance which has been initiated by another component. |
MessageExchange |
accept(long timeout)
Identical to accept(), but returns after specified interval even if a message exchange is unavailable. |
void |
close()
Closes the delivery channel, halting all message traffic. |
MessageExchangeFactory |
createExchangeFactory()
Create a message exchange factory. |
MessageExchangeFactory |
createExchangeFactory(QName interfaceName)
Create a message exchange factory for the given interface name. |
MessageExchangeFactory |
createExchangeFactory(ServiceEndpoint endpoint)
Create a message exchange factory for the given endpoint. |
MessageExchangeFactory |
createExchangeFactoryForService(QName serviceName)
Create a message exchange factory for the given service name. |
void |
send(MessageExchange exchange)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component. |
boolean |
sendSync(MessageExchange exchange)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component, blocking until the exchange is returned. |
boolean |
sendSync(MessageExchange exchange,
long timeout)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component, blocking until the specified timeout is reached. |
Method Detail |
---|
void close() throws MessagingException
MessagingException
- fatal error while closing channel.MessageExchangeFactory createExchangeFactory()
MessageExchangeFactory createExchangeFactory(QName interfaceName)
interfaceName
- name of the interface for which all exchanges
created by the returned factory will be set
MessageExchangeFactory createExchangeFactoryForService(QName serviceName)
serviceName
- name of the service for which all exchanges
created by the returned factory will be set
MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
endpoint
- endpoint for which all exchanges created by the
returned factory will be set for
MessageExchange accept() throws MessagingException
MessagingException
- failed to acceptMessageExchange accept(long timeout) throws MessagingException
timeout
- time to wait in milliseconds
MessagingException
- failed to acceptvoid send(MessageExchange exchange) throws MessagingException
exchange
- message exchange to send
MessagingException
- unable to send exchangeboolean sendSync(MessageExchange exchange) throws MessagingException
exchange
- message exchange to send
MessagingException
- unable to send exchangeboolean sendSync(MessageExchange exchange, long timeout) throws MessagingException
exchange
- message exchange to sendtimeout
- time to wait in milliseconds
MessagingException
- unable to send exchange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |