A custom policy allows you to define when message transmission occurs and which messages to send in the message transmission.
When creating custom policy rules for your application, it is recommended that you include a default all-inclusive rule so that messages are not accidentally overlooked by other rules. For example, this rule synchronizes messages that are at least one day old,
auto=DATEADD( day, 1, ias_StatusTime ) < ias_CurrentTimestamp
The following is a list of factors that impact the effectiveness of synchronization and should be considered when creating your own custom policy rules.
Bandwidth and network reliability
Data transfer costs
The custom policy is defined by a set of transmission rules.
Each rule is of the following form:
schedule = condition
where schedule defines when condition is evaluated. For more information, see Rule syntax.
All messages satisfying condition are transmitted. In particular, if schedule is automatic, the condition is evaluated when any of the following conditions occurs:
PutMessage() is called. See:
A message status change has occurred. This typically occurs when a message is acknowledged by the application. See:
A Push Notification is received.
A Network Status Change Notification is received.
TriggerSendReceive ( ) is called. See:
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|