Foundations Apex API Developer Reference

fferpcore.ihcc_IProcessLimits

global interface ihcc_IProcessLimits

Interface representing the limits available to an integration to process the messages passed to it. Note that these limits may be different to what is reported in the Limits class: ihcc may reserve some limits for it's own use or may have used some limits before calling to the integration. This is designed to be used with the ihcc wrappers that will throw catchable exceptions if these limits are going to be breached

Methods

getCallouts

Integer getCallouts()

Returns the number of callouts that have been processed. This number will not include any callouts made before the integration is called.

Return Value

The number of callouts that have been processed by the integration.

getLimitCallouts

Integer getLimitCallouts()

Returns the total number of callouts that can be procesed. This is the number of callouts available to the integration: any callouts required by the framework are already taken into account.

Return Value

The number of callouts available to the integration.

calloutMayBeMade

Boolean calloutMayBeMade()

Returns true if another callout can be made without causing an exception to be thrown.

Return Value

True if getCallouts()<getLimitCallouts()

getDMLStatements

Integer getDMLStatements()

Returns the number of DML statements that have been processed. This number will not include any statements made before the integration is called.

Return Value

The number of DML statements that have been processed by the integration.

getLimitDMLStatements

Integer getLimitDMLStatements()

Returns the total number of DML statements that can be procesed. This is the number of DML statements available to the integration: any DML statements required by the framework are already taken into account.

Return Value

The number of DML statements available to the integration.

dmlStatementMayBeMade

Boolean dmlStatementMayBeMade()

Returns true if another DML statement can be made without causing an exception to be thrown.

Return Value

True if getDMLStatements()<getLimitDMLStatements()

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