|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MsLink
A MsLink represents link between two
org.mobicents.media.server.spi.Endpoint
Application creates instance of MsLink by calling
MsSession.createLink(MsLinkMode) As soon MsLink is created
MsSession call's MsLink.fireMsLinkCreated() to fire the Event
MsLinkEventID.LINK_CREATED
MsLink maintains the reference to MsSession
object for life of MsLink
| Method Summary | |
|---|---|
void |
addLinkListener(MsLinkListener listener)
Adds link listener at MsLink level. |
void |
addNotificationListener(MsNotificationListener listener)
Add the MsNotificationListener at MsLink level. |
MsEndpoint[] |
getEndpoints()
Returns back the Endpoints names that this link is trying to join |
java.lang.String |
getId()
Gets the Link ID |
MsLinkMode |
getMode()
Get the MsLinkMode of this MsLink |
MsSession |
getSession()
Gets the session to which this links belongs |
MsLinkState |
getState()
Returns the state of MsLink |
void |
join(java.lang.String a,
java.lang.String b)
Joins specified endpoints. |
void |
release()
Drops this link |
void |
removeLinkListener(MsLinkListener listener)
Removes connection listener. |
void |
removeNotificationListener(MsNotificationListener listener)
Remove the instance of MsNotificationListener to no longer receive the events for state change of MsLink |
void |
setMode(MsLinkMode mode)
While creating the MsLink, application passes the MsLinkMode. |
| Method Detail |
|---|
java.lang.String getId()
MsLinkMsLinkState getState()
MsLinkStateMsSession getSession()
void join(java.lang.String a,
java.lang.String b)
a - the name of the first endpoint.b - the name of the second endpoint.MsEndpoint[] getEndpoints()
MsLinkMode getMode()
MsLinkMode of this MsLink
void setMode(MsLinkMode mode)
MsLinkMode.
At any time if MsLinkMode needs to be changed this method is called
passing appropriate MsLinkMode. If the link is already in same mode as
that of passed, nothing happens.
mode - MsLinkModevoid release()
void addLinkListener(MsLinkListener listener)
MsLinkListener registered at MsProvider
will be called before MsLinkListener at MsLink level
listener - the listener object.void removeLinkListener(MsLinkListener listener)
listener - the listener object was added previously.void addNotificationListener(MsNotificationListener listener)
MsNotificationListener at MsLink level. The
registered listener will be called for state change of this MsLink only.
MsNotificationListener
registered at MsProvider will be called before
MsNotificationListener at MsLink level
listener - Instance of MsNotificationListener to be registeredvoid removeNotificationListener(MsNotificationListener listener)
listener - Instance of MsNotificationListener to be de-registered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||