use of org.wso2.carbon.bpel.config.SimpleSchedulerConfig in project carbon-business-process by wso2.
the class BPELServerConfiguration method populateODESchedulerConfiguration.
/**
* Populate ODE scheduler configuration.
*/
private void populateODESchedulerConfiguration() {
if (bpsConfigDocument.getWSO2BPS().getODESchedulerConfiguration() != null) {
SimpleSchedulerConfig config = bpsConfigDocument.getWSO2BPS().getODESchedulerConfiguration();
odeSchedulerQueueLength = config.getODESchedulerQueueLength() > 0 ? config.getODESchedulerQueueLength() : odeSchedulerQueueLength;
odeSchedulerImmediateInterval = config.getODESchedulerImmediateInterval() > 0 ? config.getODESchedulerImmediateInterval() : odeSchedulerImmediateInterval;
odeSchedulerNearFutureInterval = config.getODESchedulerNearFutureInterval() > 0 ? config.getODESchedulerNearFutureInterval() : odeSchedulerNearFutureInterval;
odeSchedulerStaleInterval = config.getODESchedulerStaleInterval() > 0 ? config.getODESchedulerStaleInterval() : odeSchedulerStaleInterval;
odeSchedulerTransactionsPerSecond = config.getODESchedulerTransactionsPerSecond() > 0 ? config.getODESchedulerTransactionsPerSecond() : odeSchedulerTransactionsPerSecond;
odeSchedulerWarningDelay = config.getODESchedulerWarningDelay() > 0 ? config.getODESchedulerWarningDelay() : odeSchedulerWarningDelay;
odeSchedulerImmediateTransactionRetryLimit = config.getODESchedulerImmediateTransactionRetryLimit() > 0 ? config.getODESchedulerImmediateTransactionRetryLimit() : odeSchedulerImmediateTransactionRetryLimit;
odeSchedulerImmediateTransactionRetryInterval = config.getODESchedulerImmediateInterval() > 0 ? config.getODESchedulerImmediateTransactionRetryInterval() : odeSchedulerImmediateTransactionRetryInterval;
}
}
Aggregations