if (selHdlPair != null) { //disable can cause the pair to be absent.
shutdownAndRemoveSelectorHandlers(newTT.getProtocol(),
selHdlPair.getLeft(), selHdlPair.getRight());
//Add
final ProtocolChain udpProtocolChain =
getProtocolChain();
ProtocolChainInstanceHandler instanceHandler =
new SimpleProtocolChainInstanceHandler(udpProtocolChain);
startSelectorHandlers(newTT, selHdlPair,
instanceHandler, sipBindingCtx);
}
oldTTs.remove(oldTT);
} else {
//okidoki
//Check updateSSL, there the SSL changes are taken into
//account.
}
} else {
//Add it
if (logger.isLoggable(Level.FINE)) {
logger.log(Level.FINE, "sip.network.grizzly.update.tt",
new Object[]{
newTT.getProtocol().name(),
sipBindingCtx.getContext()
});
}
final ProtocolChain udpProtocolChain = getProtocolChain();
ProtocolChainInstanceHandler instanceHandler =
new SimpleProtocolChainInstanceHandler(udpProtocolChain);
Pair<SelectorHandler, SelectorHandler> selHdlPair =