javax.media.rtp.event
Class InactiveReceiveStreamEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.rtp.event.RTPEvent
                    |
                    +--javax.media.rtp.event.ReceiveStreamEvent
                          |
                          +--javax.media.rtp.event.InactiveReceiveStreamEvent

public class InactiveReceiveStreamEvent
extends ReceiveStreamEvent

Informs the SessionListener that data & control packets have stopped arriving on this ReceiveStream. The time for which the RTPSM waits for data & control packets before notifying the listeners of this event is approximately equal to the RTCP report interval as specified in the RTP draft. InactiveRecvStreamEvent will also be generated to say the passive receivers that have timed out. The timeout used for this is the 5 times the report interval as per the draft and is measured for RTCP packets for RTCP packets from this passive receiver. In the case of a passive receiver, the ReceiveStream will be null. If data or control is resumed from this member, an ActiveRecvStreamEvent will be generated. In case of the RTP draft, a member is to be timed out if an RTP/RTCP packet is not received in the timeout time. In our implementation, the InactiveRecvStreamEvent is sent, but the member is not removed from our cache until a much larger timeout (set to 30 min).At this time, a TimeOutEvent is sent to the ReceiveStreamListener.This is done in order to take care of inactivity due to network partitions.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InactiveReceiveStreamEvent(SessionManager from, Participant participant, ReceiveStream recvStream, boolean laststream)
           
 
Method Summary
 boolean isLastStream()
          Set to true if this is the last or only RTPStream owned by this participant.
 
Methods inherited from class javax.media.rtp.event.ReceiveStreamEvent
getParticipant, getReceiveStream
 
Methods inherited from class javax.media.rtp.event.RTPEvent
getSessionManager, getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InactiveReceiveStreamEvent

public InactiveReceiveStreamEvent(SessionManager from,
                                  Participant participant,
                                  ReceiveStream recvStream,
                                  boolean laststream)
Method Detail

isLastStream

public boolean isLastStream()
Set to true if this is the last or only RTPStream owned by this participant.


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.