Foundations Apex API Developer Reference

fferpcore.GenericMessageHandler

global with sharing class GenericMessageHandler

Implements a common pattern for fferpcore.MessageHandler for the Data Replication use case. This class is intended to be wrapped by your MessageHandler. Therefore it does not implement fferpcore.MessageHandler itself.

Methods

GenericMessageHandler

global GenericMessageHandler(SObjectType targetObject, SObjectField correlationField, String productDeveloperName, String messageTypeDeveloperName)

Input Parameters

Name Type Description
targetObject SObjectType The object to which the results are to be written.
correlationField SObjectField Field to use with a SimpleLinkingCorrelationStrategy. Null if you provide your own correlation strategy.
productDeveloperName String Product developer name of this subscription.
messageTypeDeveloperName String Messsage type developer name of this subscription.

onMessages

global void onMessages(List<fferpcore.DeliveredMessage> messages)

Handles the messages.

addLinkControlPublication

global void addLinkControlPublication(fferpcore.MessagingSystemService.Sender sender, fferpcore.MessagingSystemService.MessageTypeSpecifier specifier)

Adds details of a publication to use to send Link Control replies.

withProxyDeveloperName

global fferpcore.GenericMessageHandler withProxyDeveloperName(String proxyDeveloperName)

Fluent method to set the Proxy Developer Name for this subscription.

withIdentifier

global fferpcore.GenericMessageHandler withIdentifier(String identifier)

Fluent method to set the Identifier for this subscription.

withLinkingCorrelationStrategy

global fferpcore.GenericMessageHandler withLinkingCorrelationStrategy(fferpcore.LinkingCorrelationStrategy linkingCorrelationStrategy)

Fluent method to override the Linking Correlation Strategy.

withLinkControlDeveloperName

global fferpcore.GenericMessageHandler withLinkControlDeveloperName(String linkControlDeveloperName)

Fluent method to set the Link Control Developer Name to be sent with Link Control messages.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.