@Override public void initialize() throws XMPPException { if (!isResolving() && !isResolved()) { LOGGER.fine("Initialized"); // Negotiation with a STUN server for a set of interfaces is quite slow, but the results // never change over then instance of a JVM. To increase connection performance considerably // we now cache established/initialized negotiators for each STUN server, so that subsequent uses // of the STUN server are much, much faster. if (negociatorsMap.get(server) == null) { // CHECKSTYLE:OFF ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1); negociatorsMap.put(server, iceNegociator); // gather candidates iceNegociator.gatherCandidateAddresses(); // prioritize candidates iceNegociator.prioritizeCandidates(); // CHECKSTYLE:ON } } this.setInitialized(); }
public void initialize() throws XMPPException { if (!isResolving() && !isResolved()) { LOGGER.fine("Initialized"); // Negotiation with a STUN server for a set of interfaces is quite slow, but the results // never change over then instance of a JVM. To increase connection performance considerably // we now cache established/initialized negotiators for each STUN server, so that subsequent uses // of the STUN server are much, much faster. if (negociatorsMap.get(server) == null) { ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1); negociatorsMap.put(server, iceNegociator); // gather candidates iceNegociator.gatherCandidateAddresses(); // priorize candidates iceNegociator.prioritizeCandidates(); } } this.setInitialized(); }
public void initialize() throws XMPPException { if (!isResolving() && !isResolved()) { LOGGER.debug("Initialized"); // Negotiation with a STUN server for a set of interfaces is quite slow, but the results // never change over then instance of a JVM. To increase connection performance considerably // we now cache established/initialized negotiators for each STUN server, so that subsequent uses // of the STUN server are much, much faster. if (negociatorsMap.get(server) == null) { ICENegociator iceNegociator = new ICENegociator(server, port, (short) 1); negociatorsMap.put(server, iceNegociator); // gather candidates iceNegociator.gatherCandidateAddresses(); // priorize candidates iceNegociator.prioritizeCandidates(); } } this.setInitialized(); }