Search in sources :

Example 1 with Calintf

use of org.bedework.calcorei.Calintf in project bw-calendar-engine by Bedework.

the class CalSvc method kill.

@Override
public void kill(final IfInfo ifInfo) {
    try {
        for (final Calintf ci : getCal().active()) {
            final IfInfo calIfInfo = ci.getIfInfo();
            if (calIfInfo.getId().equals(ifInfo.getId())) {
                warn("Stopping interface with id " + ifInfo.getId());
                ci.kill();
                break;
            }
        }
    } catch (final Throwable t) {
        error(t);
    }
}
Also used : IfInfo(org.bedework.calfacade.ifs.IfInfo) Calintf(org.bedework.calcorei.Calintf)

Aggregations

Calintf (org.bedework.calcorei.Calintf)1 IfInfo (org.bedework.calfacade.ifs.IfInfo)1