public class LocalConnectionImpl extends BaseConnection
| Constructor and Description |
|---|
LocalConnectionImpl(int id,
ChannelsManager channelsManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateCname() |
void |
generateOffer(boolean webrtc) |
AudioComponent |
getAudioComponent() |
long |
getBytesReceived() |
long |
getBytesTransmitted() |
String |
getCname() |
double |
getJitter() |
OOBComponent |
getOOBComponent() |
long |
getPacketsReceived() |
long |
getPacketsTransmitted() |
boolean |
isAvailable() |
protected void |
onClosed()
Called when connection is moving from OPEN state to NULL state.
|
protected void |
onCreated()
Called when connection created.
|
protected void |
onFailed()
Called if failure has bean detected during transition.
|
protected void |
onOpened()
Called when connected moved to OPEN state.
|
void |
setConnectionFailureListener(ConnectionFailureListener connectionListener)
Sets connection failure listener.
|
void |
setMode(ConnectionMode mode)
Modify mode of this connection for all known media types.
|
void |
setOtherParty(byte[] descriptor)
Joins endpoint which executes this connection with other party.
|
void |
setOtherParty(Connection other)
Joins endpoint wich executes this connection with other party.
|
void |
setOtherParty(Text descriptor)
Joins endpoint which executes this connection with other party.
|
String |
toString() |
addListener, bind, close, getDescriptor, getEndpoint, getId, getIsLocal, getLocalDescriptor, getMode, getRemoteDescriptor, getState, getTextualId, join, releaseConnection, removeListener, setEndpoint, setIsLocalpublic LocalConnectionImpl(int id,
ChannelsManager channelsManager)
public void generateCname()
public String getCname()
public AudioComponent getAudioComponent()
getAudioComponent in class BaseConnectionpublic OOBComponent getOOBComponent()
getOOBComponent in class BaseConnectionpublic void generateOffer(boolean webrtc)
throws IOException
IOExceptionpublic void setOtherParty(Connection other) throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectionother - the connection executed by other party endpoint.IOExceptionpublic void setOtherParty(Text descriptor) throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectiondescriptor - the SDP descriptor of the other party.IOExceptionpublic void setOtherParty(byte[] descriptor)
throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectiondescriptor - the SDP descriptor of the other party.IOExceptionpublic long getPacketsReceived()
public long getBytesReceived()
public long getPacketsTransmitted()
public long getBytesTransmitted()
public double getJitter()
public void setConnectionFailureListener(ConnectionFailureListener connectionListener)
BaseConnectionsetConnectionFailureListener in interface ConnectionsetConnectionFailureListener in class BaseConnectionprotected void onCreated()
throws Exception
BaseConnectiononCreated in class BaseConnectionExceptionprotected void onFailed()
BaseConnectiononFailed in class BaseConnectionpublic void setMode(ConnectionMode mode) throws ModeNotSupportedException
BaseConnectionsetMode in interface ConnectionsetMode in class BaseConnectionmode - the new mode of the connection.ModeNotSupportedExceptionprotected void onOpened()
throws Exception
BaseConnectiononOpened in class BaseConnectionExceptionprotected void onClosed()
BaseConnectiononClosed in class BaseConnectionpublic boolean isAvailable()
Copyright © 2016 TeleStax, Inc.. All Rights Reserved.