public abstract class AbstractMgcpConnection extends Object implements MgcpConnection
| Modifier and Type | Field and Description |
|---|---|
protected MgcpConnectionState |
state |
protected Object |
stateLock |
| Constructor and Description |
|---|
AbstractMgcpConnection(int identifier) |
| Modifier and Type | Method and Description |
|---|---|
abstract AudioComponent |
getAudioComponent()
Gets the in-band audio component of the connection.
|
String |
getHexIdentifier()
Gets the connection identifier in hexadecimal base.
|
int |
getIdentifier()
Gets the connection identifier
|
ConnectionMode |
getMode()
Gets the current mode of the connection.
|
abstract OOBComponent |
getOutOfBandComponent()
Gets the out-of-band audio component of the connection.
|
MgcpConnectionState |
getState()
Gets the current state of the connection
|
void |
setMode(ConnectionMode mode)
Sets the mode of the connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, halfOpen, isLocal, openprotected volatile MgcpConnectionState state
protected final Object stateLock
public int getIdentifier()
MgcpConnectiongetIdentifier in interface MgcpConnectionpublic String getHexIdentifier()
MgcpConnectiongetHexIdentifier in interface MgcpConnectionpublic ConnectionMode getMode()
MgcpConnectiongetMode in interface MgcpConnectionpublic MgcpConnectionState getState()
MgcpConnectiongetState in interface MgcpConnectionpublic void setMode(ConnectionMode mode) throws IllegalStateException
MgcpConnectionsetMode in interface MgcpConnectionmode - The new mode of the connectionIllegalStateException - Cannot update mode of closed connectionspublic abstract AudioComponent getAudioComponent()
MgcpConnectiongetAudioComponent in interface MgcpConnectionpublic abstract OOBComponent getOutOfBandComponent()
MgcpConnectiongetOutOfBandComponent in interface MgcpConnectionCopyright © 2017 TeleStax, Inc.. All Rights Reserved.