org.lastbamboo.common.ice
Class IceCheckSchedulerImpl

java.lang.Object
  extended by org.lastbamboo.common.ice.IceCheckSchedulerImpl
All Implemented Interfaces:
IceCheckScheduler

public class IceCheckSchedulerImpl
extends Object
implements IceCheckScheduler

Class that schedules and executes ICE checks. This behavior is defined in ICE section 5.8.


Constructor Summary
IceCheckSchedulerImpl(IceAgent agent, IceMediaStream stream, IceCheckList checkList, ExistingSessionIceCandidatePairFactory existingSessionPairFactory)
          Creates a new scheduler for the specified pairs.
 
Method Summary
 void onPair()
          Notifies the scheduler that a pair has been added.
 void scheduleChecks()
          Schedules checks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IceCheckSchedulerImpl

public IceCheckSchedulerImpl(IceAgent agent,
                             IceMediaStream stream,
                             IceCheckList checkList,
                             ExistingSessionIceCandidatePairFactory existingSessionPairFactory)
Creates a new scheduler for the specified pairs.

Parameters:
agent - The top-level ICE agent.
stream - The media stream.
checkList - The check list.
Method Detail

scheduleChecks

public void scheduleChecks()
Description copied from interface: IceCheckScheduler
Schedules checks.

Specified by:
scheduleChecks in interface IceCheckScheduler

onPair

public void onPair()
Description copied from interface: IceCheckScheduler
Notifies the scheduler that a pair has been added. This is useful in certain cases where checks may have stopped, and the scheduler needs to know to go back to work.

Specified by:
onPair in interface IceCheckScheduler


Copyright © 2013 LittleShoot. All Rights Reserved.