public interface ITKMessageSender
synchronousand
asynchronousrepresent the perspective of the the application rather than necessarily the one or more underlying transport hops.
ITKMessageConsumer
,
ITKCallbackHandler
Modifier and Type | Method and Description |
---|---|
void |
send(ITKMessage request)
Operation that allows a business payload to be sent to the
destination service/system with no response expected (a.k.a.
|
void |
sendAsync(ITKMessage businessPayload)
Operation that allows a business payload to be sent asynchronously to the
destination service/system.
|
ITKMessage |
sendSync(ITKMessage request)
Operation that allows a business payload to be sent synchronously to the
destination service/system returning the appropriate business response.
|
void send(ITKMessage request) throws ITKMessagingException
request
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is null/blank or if there is a
technical exception invoking the service provider,
first node in the distribution (for instance if a SOAP
fault is returned by the service provider)@Requirement(traceTo="WS-PAT-01") ITKMessage sendSync(ITKMessage request) throws ITKMessagingException
request
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is null/blank or if there is a
technical exception invoking the service provider (for instance if a SOAP
fault is returned by the service provider)@Requirement(traceTo="WS-PAT-02") void sendAsync(ITKMessage businessPayload) throws ITKMessagingException
ITKCallbackHandler.onMessage(ITKMessage)
businessPayload
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is
null/blank or if there is a technical exception invoking the service provider
such as underlying transport errors or timeouts (for instance if a SOAP fault
is returned synchronously by the service provider)All content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated