|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IceCheckList
Interface for ICE check lists.
| Method Summary | |
|---|---|
void |
addPair(IceCandidatePair pair)
Adds the specified ICE candidate pair to the check list. |
void |
addTriggeredPair(IceCandidatePair pair)
Adds a pair to the triggered check queue. |
void |
check()
|
void |
close()
Close all candidates pair connections. |
void |
executeOnPairs(org.littleshoot.util.Closure<IceCandidatePair> closure)
Executes the specified Closure on candidate pairs in the
check list. |
void |
formCheckList(Collection<IceCandidate> remoteCandidates)
Forms the check list. |
IceCheckListState |
getState()
Accessor for the state of the check list. |
boolean |
hasHigherPriorityPendingPair(IceCandidatePair pair)
Checks whether or not there are existing pairs on either the triggered check list or the normal check list. |
boolean |
isActive()
Returns whether or not this check list is considered "active" and should count towards the value of N in timer computation from section 5.8. |
boolean |
matchesAll(org.littleshoot.util.Predicate<IceCandidatePair> pred)
Returns whether all the pairs in the check list fit the given predicate. |
boolean |
matchesAny(org.littleshoot.util.Predicate<IceCandidatePair> pred)
Returns whether or not any pairs match the specified criteria. |
void |
recomputePairPriorities(boolean controlling)
Recomputes the priorities of pairs in checklists. |
IceCandidatePair |
removeTopTriggeredPair()
Removes the top triggered pair. |
void |
removeWaitingAndFrozenPairs(IceCandidatePair pair)
Notifies the media stream that there's been a nominated pair. |
IceCandidatePair |
selectAnyPair(org.littleshoot.util.Predicate<IceCandidatePair> pred)
Selects the first pair matching the predicate from any check list. |
IceCandidatePair |
selectPair(org.littleshoot.util.Predicate<IceCandidatePair> pred)
Selects the first pair matching the predicate from the normal check list. |
void |
setState(IceCheckListState state)
Sets the state of the check list. |
| Method Detail |
|---|
void setState(IceCheckListState state)
state - The state of the check list.IceCheckListState getState()
void check()
boolean isActive()
true if the check list is active, otherwise
false.void addTriggeredPair(IceCandidatePair pair)
pair - The pair to add.IceCandidatePair removeTopTriggeredPair()
null if there is no
such pair.void recomputePairPriorities(boolean controlling)
controlling - The current controlling status of the agent.void addPair(IceCandidatePair pair)
pair - The pair to add.void formCheckList(Collection<IceCandidate> remoteCandidates)
remoteCandidates - The remote candidates to use in forming a
check list.boolean hasHigherPriorityPendingPair(IceCandidatePair pair)
pair - The pair to check.
true if there's a higher priority pair that could
still complete its check, otherwise false.void removeWaitingAndFrozenPairs(IceCandidatePair pair)
pair - The nominated pair.void executeOnPairs(org.littleshoot.util.Closure<IceCandidatePair> closure)
Closure on candidate pairs in the
check list.
closure - The Closure to execute.IceCandidatePair selectPair(org.littleshoot.util.Predicate<IceCandidatePair> pred)
pred - The Predicate to check with.
null if no such pair
exists.IceCandidatePair selectAnyPair(org.littleshoot.util.Predicate<IceCandidatePair> pred)
pred - The Predicate to check with.
null if no such pair exists.boolean matchesAny(org.littleshoot.util.Predicate<IceCandidatePair> pred)
pred - The Predicate to match against.
true if any pairs match the specified criteria,
otherwise false.boolean matchesAll(org.littleshoot.util.Predicate<IceCandidatePair> pred)
pred - The Predicate to match against.
true if all pairs match the specified criteria,
otherwise false.void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||