jlibrtp
Class AppCallerThread

java.lang.Object
  extended by java.lang.Thread
      extended by jlibrtp.AppCallerThread
All Implemented Interfaces:
java.lang.Runnable

public class AppCallerThread
extends java.lang.Thread

The purpose of this thread is to check whether there are packets ready from any participants. It should sleep when not in use, and be woken up by a condition variable. Optionally, if we do jitter-control, the condition variable should have a max waiting period equal to how often we need to push data.

Author:
Arne Kepp

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  RTPAppIntf appl
          The applications interface, where the callback methods are called
(package private)  RTPSession rtpSession
          The parent RTP Session
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected AppCallerThread(RTPSession session, RTPAppIntf rtpApp)
          Instatiates the AppCallerThread
 
Method Summary
 void run()
          The AppCallerThread will run in this loop until the RTPSession is terminated.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rtpSession

RTPSession rtpSession
The parent RTP Session


appl

RTPAppIntf appl
The applications interface, where the callback methods are called

Constructor Detail

AppCallerThread

protected AppCallerThread(RTPSession session,
                          RTPAppIntf rtpApp)
Instatiates the AppCallerThread

Parameters:
session - the RTPSession with participants etc
rtpApp - the interface to which data is given
Method Detail

run

public void run()
The AppCallerThread will run in this loop until the RTPSession is terminated. Whenever an RTP packet is received it will loop over the participants to check for packet buffers that have available frame.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread