Package com.wowza.wms.rtp.model
Class RTPSessions
- Object
-
- com.wowza.wms.rtp.model.RTPSessions
-
public class RTPSessions extends Object
RTPSessions: collection of RTP sessions
-
-
Constructor Summary
Constructors Constructor Description RTPSessions(IVHost vhost)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RTPSession
addSession(RTPSession session)
Add RTP sessionvoid
addSessionListener(IRTPSessionNotify listener)
Add a RTP session listenerString
getNextSessionId()
Get next RTP session id for new sessionRTPSession
getSession(String sessionId)
Get RTP session by session idjava.util.List<String>
getSessionIds()
Get list of current RTP session idsIVHost
getVHost()
Get vhostvoid
notifySessionCreate(IApplicationInstance appInstance, RTPSession rtpSession)
Notify session createvoid
notifySessionCreate(RTPSession rtpSession)
Notify session createvoid
notifySessionDestroy(IApplicationInstance appInstance, RTPSession rtpSession)
Notify session destroyvoid
notifySessionDestroy(RTPSession rtpSession)
Notify session destroyvoid
releaseSessionId(String sessionIdStr)
Release an RTP session idRTPSession
removeSession(RTPSession session)
Remove RTP session by objectRTPSession
removeSession(String sessionId)
Remove RTP session by session idvoid
removeSessionListener(IRTPSessionNotify listener)
Remove an RTP session listener
-
-
-
Constructor Detail
-
RTPSessions
public RTPSessions(IVHost vhost)
Constructor- Parameters:
vhost
- vhost
-
-
Method Detail
-
getNextSessionId
public String getNextSessionId()
Get next RTP session id for new session- Returns:
- RTP session id
-
getSessionIds
public java.util.List<String> getSessionIds()
Get list of current RTP session ids- Returns:
- list of current RTP session ids
-
releaseSessionId
public void releaseSessionId(String sessionIdStr)
Release an RTP session id- Parameters:
sessionIdStr
- RTP session id
-
getSession
public RTPSession getSession(String sessionId)
Get RTP session by session id- Parameters:
sessionId
- session id- Returns:
- RTP session
-
removeSession
public RTPSession removeSession(String sessionId)
Remove RTP session by session id- Parameters:
sessionId
- session id- Returns:
- RTP session if removed
-
removeSession
public RTPSession removeSession(RTPSession session)
Remove RTP session by object- Parameters:
session
- RTP session- Returns:
- RTP session if removed
-
addSession
public RTPSession addSession(RTPSession session)
Add RTP session- Parameters:
session
- RTP session- Returns:
- RTP session added
-
getVHost
public IVHost getVHost()
Get vhost- Returns:
- vhost
-
addSessionListener
public void addSessionListener(IRTPSessionNotify listener)
Add a RTP session listener- Parameters:
listener
- RTP session listener
-
removeSessionListener
public void removeSessionListener(IRTPSessionNotify listener)
Remove an RTP session listener- Parameters:
listener
- RTP session listener
-
notifySessionCreate
public void notifySessionCreate(IApplicationInstance appInstance, RTPSession rtpSession)
Notify session create- Parameters:
appInstance
- application instancertpSession
- RTP session
-
notifySessionDestroy
public void notifySessionDestroy(IApplicationInstance appInstance, RTPSession rtpSession)
Notify session destroy- Parameters:
appInstance
- application instancertpSession
- RTP session
-
notifySessionCreate
public void notifySessionCreate(RTPSession rtpSession)
Notify session create- Parameters:
rtpSession
- RTP session
-
notifySessionDestroy
public void notifySessionDestroy(RTPSession rtpSession)
Notify session destroy- Parameters:
rtpSession
- RTP session
-
-