barracuda-client-api
Version:
API Client to connect to Barracuda Enterprise Service Bus
27 lines (24 loc) • 1.8 kB
text/typescript
export enum BarracudaRecoveryPolicy {
None = 0,
/**
* For every previously interrupted subscription, this policy will trigger subscribe only portion which will get future updates.
* For example, if your last active request was BarracudaBridgeReadQueryCommands.snapshotAndSubscribe, only the Subscribe will be instated.
* NOTE: Use this when you only care about recovering for future updates, for example latest stock price updates.
* @type {BarracudaRecoveryPolicy.ResubscribeAllInterruptedSubscriptions}
*/
ResubscribeAllInterruptedSubscriptions = 1,
/**
* For every previously interrupted subscription, this policy will trigger a replay of that entire request with the same parameters.
* For example, if your last active request was BarracudaBridgeReadQueryCommands.snapshotAndSubscribe, the entire snapshotAndSubscribe will be replayed.
* NOTE: Use this when you can't just recover latest changes, for example, Order blotter, which could have had new orders while the connection is down.
* @type {BarracudaRecoveryPolicy.ReplayAllInterruptedSubscriptions}
*/
ReplayAllInterruptedSubscriptions = 2,
/**
* For every previously executed request during the life time of this BCjs instance, this policy will trigger a replay of that entire request with the same parameters.
* For example, if BCjs made 10 requests, 9 for reference data that were processed, and one last active request, this policy will execute all 10 again, similar to RecoveryPolicy.ReplayAllInterruptedSubscriptions
* NOTE: Use this when the application is a light weight app with minimum data requirement and needs a full refresh. For example mobile app that gets aggressively garbage collected.
* @type {BarracudaRecoveryPolicy.ReplayAllRequests}
*/
ReplayAllRequests = 3,
}