Allows the tie breaker value for an Agent to be set (patch my Matt

Fredrickson).
This commit is contained in:
Boris Grozev 2015-07-24 18:15:35 -05:00
parent 8443e7e914
commit 0e715bd79a

View File

@ -178,7 +178,7 @@ public class Agent
* repair the case where both agents believe to have the controlling or the * repair the case where both agents believe to have the controlling or the
* controlled role. * controlled role.
*/ */
private final long tieBreaker; private long tieBreaker;
/** /**
* Determines whether this is the controlling agent in a an ICE interaction. * Determines whether this is the controlling agent in a an ICE interaction.
@ -311,6 +311,16 @@ public class Agent
nominator = new DefaultNominator(this); nominator = new DefaultNominator(this);
} }
/**
* Sets the tie breaker value. Note that to this should be set early (before
* connectivity checks start).
* @param tieBreakerInput the value to set.
*/
public void setTieBreaker(long tieBreakerInput)
{
tieBreaker = tieBreakerInput;
}
/** /**
* Creates a new media stream and stores it. * Creates a new media stream and stores it.
* *