|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
| Method Summary | |
|---|---|
void |
addListener(ConnectionListener listener)
Adds connection state listener. |
long |
getBytesReceived()
The total number of bytes received . |
long |
getBytesReceived(MediaType media)
The number of bytes of the specified media type received . |
long |
getBytesTransmitted()
The total number of bytes transmitted. |
long |
getBytesTransmitted(MediaType media)
The number of bytes of the specified media type transmitted. |
String |
getDescriptor()
Gets the descriptor of this connection in SDP format. |
Endpoint |
getEndpoint()
Gets the endpoint which executes this connection. |
String |
getId()
Gets the identifier of this connection. |
double |
getJitter()
The average jitter value accross all media types. |
double |
getJitter(MediaType media)
The interarrival jitter for the specific media type. |
ConnectionMode |
getMode(MediaType mediaType)
Gets the current mode of this connection. |
long |
getPacketsReceived(MediaType media)
The number of packets of the specified media type received . |
long |
getPacketsTransmitted(MediaType media)
The number of packets of the specified media type transmitted. |
ConnectionState |
getState()
Returns state of this connection |
void |
removeListener(ConnectionListener listener)
Removes connection state listener. |
void |
setMode(ConnectionMode mode)
Modify mode of this connection for all known media types. |
void |
setMode(ConnectionMode mode,
MediaType mediaType)
Modify mode of this connection. |
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. |
| Method Detail |
|---|
String getId()
ConnectionState getState()
ConnectionMode getMode(MediaType mediaType)
void setMode(ConnectionMode mode,
MediaType mediaType)
throws ModeNotSupportedException
mode - the new value of the mode.
ModeNotSupportedException
void setMode(ConnectionMode mode)
throws ModeNotSupportedException
mode - the new mode of the connection.
ModeNotSupportedExceptionEndpoint getEndpoint()
String getDescriptor()
void setOtherParty(Connection other)
throws IOException
other - the connection executed by other party endpoint.
IOException
void setOtherParty(byte[] descriptor)
throws IOException
descriptor - the SDP descriptor of the other party.
IOException
void setOtherParty(Text descriptor)
throws IOException
descriptor - the SDP descriptor of the other party.
IOExceptionvoid addListener(ConnectionListener listener)
listener - to be registeredvoid removeListener(ConnectionListener listener)
listener - to be unregisteredlong getPacketsReceived(MediaType media)
media - the media type.
long getBytesReceived(MediaType media)
media - the media type.
long getBytesReceived()
long getPacketsTransmitted(MediaType media)
media - the media type
long getBytesTransmitted(MediaType media)
media - the media type
long getBytesTransmitted()
double getJitter(MediaType media)
media - the media type
double getJitter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||