org.mobicents.media.server
Class ConnectionImpl
java.lang.Object
org.mobicents.media.server.ConnectionImpl
- All Implemented Interfaces:
- java.io.Serializable, org.mobicents.media.server.spi.Connection
- Direct Known Subclasses:
- LocalConnectionImpl, RtpConnectionImpl
public abstract class ConnectionImpl
- extends java.lang.Object
- implements org.mobicents.media.server.spi.Connection
- Author:
- kulikov
- See Also:
- Serialized Form
| Fields inherited from interface org.mobicents.media.server.spi.Connection |
CHANNEL_RX, CHANNEL_TX |
|
Method Summary |
void |
addListener(org.mobicents.media.server.spi.ConnectionListener listener)
|
void |
addNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
|
protected void |
close()
|
org.mobicents.media.Component |
getComponent(int resourceID)
|
org.mobicents.media.Component |
getComponent(java.lang.String name,
int chanID)
|
org.mobicents.media.server.spi.Endpoint |
getEndpoint()
|
java.lang.String |
getId()
|
int |
getIndex()
|
int |
getLifeTime()
|
org.mobicents.media.server.spi.ConnectionMode |
getMode()
|
org.mobicents.media.server.spi.ConnectionState |
getState()
|
void |
removeListener(org.mobicents.media.server.spi.ConnectionListener listener)
|
void |
removeNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
|
void |
setLifeTime(int lifeTime)
|
void |
setMode(org.mobicents.media.server.spi.ConnectionMode mode)
|
protected void |
setState(org.mobicents.media.server.spi.ConnectionState state)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mobicents.media.server.spi.Connection |
getLocalDescriptor, getPacketsReceived, getPacketsTransmitted, getRemoteDescriptor, setOtherParty, setRemoteDescriptor |
txChannel
protected Channel txChannel
rxChannel
protected Channel rxChannel
connectionListeners
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap connectionListeners
ConnectionImpl
public ConnectionImpl(EndpointImpl endpoint,
org.mobicents.media.server.spi.ConnectionMode mode)
getId
public java.lang.String getId()
- Specified by:
getId in interface org.mobicents.media.server.spi.Connection
getIndex
public int getIndex()
getState
public org.mobicents.media.server.spi.ConnectionState getState()
- Specified by:
getState in interface org.mobicents.media.server.spi.Connection
setState
protected void setState(org.mobicents.media.server.spi.ConnectionState state)
getLifeTime
public int getLifeTime()
- Specified by:
getLifeTime in interface org.mobicents.media.server.spi.Connection
setLifeTime
public void setLifeTime(int lifeTime)
- Specified by:
setLifeTime in interface org.mobicents.media.server.spi.Connection
getMode
public org.mobicents.media.server.spi.ConnectionMode getMode()
- Specified by:
getMode in interface org.mobicents.media.server.spi.Connection
setMode
public void setMode(org.mobicents.media.server.spi.ConnectionMode mode)
- Specified by:
setMode in interface org.mobicents.media.server.spi.Connection
getEndpoint
public org.mobicents.media.server.spi.Endpoint getEndpoint()
- Specified by:
getEndpoint in interface org.mobicents.media.server.spi.Connection
addListener
public void addListener(org.mobicents.media.server.spi.ConnectionListener listener)
- Specified by:
addListener in interface org.mobicents.media.server.spi.Connection
removeListener
public void removeListener(org.mobicents.media.server.spi.ConnectionListener listener)
- Specified by:
removeListener in interface org.mobicents.media.server.spi.Connection
getComponent
public org.mobicents.media.Component getComponent(int resourceID)
getComponent
public org.mobicents.media.Component getComponent(java.lang.String name,
int chanID)
- Specified by:
getComponent in interface org.mobicents.media.server.spi.Connection
addNotificationListener
public void addNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
- Specified by:
addNotificationListener in interface org.mobicents.media.server.spi.Connection
removeNotificationListener
public void removeNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
- Specified by:
removeNotificationListener in interface org.mobicents.media.server.spi.Connection
close
protected void close()
Copyright © 2009. All Rights Reserved.