public interface ITKSender
synchronousand
asynchronousrepresent the perspective of the the application rather than necessarily the one or more underlying transport hops.
Modifier and Type | Method and Description |
---|---|
void |
send(ITKTransportRoute destination,
ITKMessage request)
Operation that allows a business payload and ITK wrappers (e.g.
|
void |
sendAysnc(ITKTransportRoute destination,
ITKMessage request)
Operation that allows a business payload and ITK wrappers (e.g.
|
ITKMessage |
sendSync(ITKTransportRoute destination,
ITKMessage request)
Operation that allows a business payload and ITK wrappers (e.g.
|
void send(ITKTransportRoute destination, ITKMessage request) throws ITKMessagingException
ITKMessageSender.send(ITKMessage)
for
the specific transport associated with the servicedestination
- The ITKTransportRoute
providing the transport invocation
path for this operationrequest
- This is the ITK Wrapped message that is being sent.ITKMessagingException
- If the destination
is null,
the request
is null, or if there is transport timeout or error
or if there is a technical exception invoking the service provider (for instance if a SOAP
fault is returned by the service provider)
ITKMessage sendSync(ITKTransportRoute destination, ITKMessage request) throws ITKMessagingException
ITKMessageSender.sendSync(ITKMessage)
for
the specific transport associated with the service.destination
- The ITKTransportRoute
providing the transport invocation
path for this operationrequest
- This is the ITK Wrapped message that is being sent.ITKMessagingException
- If the destination
is null,
the request
is null, or if there is transport timeout or error
or if there is a technical exception invoking the service provider (for instance if a SOAP
fault is returned by the service provider)
void sendAysnc(ITKTransportRoute destination, ITKMessage request) throws ITKMessagingException
ITKMessageSender.sendAsync(ITKMessage)
for
the specific transport associated with the service.destination
- The ITKTransportRoute
providing the transport invocation
path for this operationrequest
- This is the ITK Wrapped message that is being sent.ITKMessagingException
- If the destination
is null,
the request
is null, or if there is transport timeout or error
or if there is a technical exception invoking the transport for the first leg
of the routed message's path to the service provider (depending on the deployment landscape this
could be an exception returned by the service provider if there is only one leg for the routed
message)
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