public interface AckFactory
The AckFactory
interface can be used to create the different types of acknowledgement messages,
supported by the Messaging System.
Modifier and Type | Method and Description |
---|---|
void |
ackNotSupported(String connectionName,
MessageKey messageKey,
AckType[] acksNotSupported)
Used to notify the Messaging System that a received message cannot be acked in one of the following ways because
the application doesn't support that feature.
|
void |
applicationAck(String connectionName,
MessageKey messageToAck)
Used to notify the Messaging System that the message has been processed by it's final recipient.
|
void |
applicationErrorAck(String connectionName,
MessageKey messageToAck,
Exception error)
Used to notify the Messaging System that the message could not be processed by it's final recipient.
|
void |
deliveryAck(String connectionName,
MessageKey messageToAck)
Used to notify the Messaging System that the message has reached it's final destination.
|
void |
deliveryErrorAck(String connectionName,
MessageKey messageToAck,
Exception error)
Used to notify the Messaging System that the message did not reached it's final destination.
|
void deliveryAck(String connectionName, MessageKey messageToAck) throws MessagingException
connectionName
- the name of the connection, that is to be used for sending the ack message.messageToAck
- the id of the Message in the Mesasging System that has been delivered.MessagingException
- if the notification fails.void deliveryErrorAck(String connectionName, MessageKey messageToAck, Exception error) throws MessagingException
connectionName
- the name of the connection, that is to be used for sending the ack message.messageToAck
- the id of the Message in the Mesasging System that has been delivered.error
- the reason the message could not be delivered.MessagingException
- if the notification fails.void applicationAck(String connectionName, MessageKey messageToAck) throws MessagingException
connectionName
- the name of the connection, that is to be used for sending the ack message.messageToAck
- messageToAckMessagingException
- MessagingExceptionvoid applicationErrorAck(String connectionName, MessageKey messageToAck, Exception error) throws MessagingException
connectionName
- the name of the connection, that is to be used for sending the ack message.messageToAck
- messageToAckerror
- the reason the application couldn't process the message.MessagingException
- MessagingExceptionvoid ackNotSupported(String connectionName, MessageKey messageKey, AckType[] acksNotSupported) throws MessagingException
connectionName
- the name of the connection, that is to be used for sending the ack message.messageKey
- the key of the message for which the not supported ack should be sent.acksNotSupported
- a list of acks that are not supported by the application.MessagingException
- if one of the Strings does not match the above possible values.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.ifc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice