Universal Messaging 10.5 | Administration Guide | Universal Messaging Enterprise Manager | Scheduling | Universal Messaging Scheduling : Interface Triggers Example
 
Universal Messaging Scheduling : Interface Triggers Example

scheduler realmInterfaceSchedule {

declare Interface myNHP ("nhp0");
declare Counter myCounter("myExhaustedThreads");

when (myNHP.idleThreads == 0) {
Logger.report("NHP0 Interface has no idles Threads");
myCounter.inc();
}

when (myCounter>= 5) {
Logger.report("Increasing the accept thread count on NHP0");
myNHP.threads("+10");
myCounter.reset();
}

}
}