T
- the very type of the StreamConnector wrapped by
StreamConnectorDelegatepublic class StreamConnectorDelegate<T extends StreamConnector> extends java.lang.Object implements StreamConnector
StreamConnector
which wraps a specific
StreamConnector instance.StreamConnector.Protocol
Modifier and Type | Field and Description |
---|---|
protected T |
streamConnector
The StreamConnector wrapped by this instance.
|
Constructor and Description |
---|
StreamConnectorDelegate(T streamConnector)
Initializes a new StreamConnectorDelegate which is to wrap a
specific StreamConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the resources allocated by this instance in the course of its
execution and prepares it to be garbage collected.
|
java.net.DatagramSocket |
getControlSocket()
Returns a reference to the DatagramSocket that a stream should
use for control data (e.g.
|
java.net.Socket |
getControlTCPSocket()
Returns a reference to the Socket that a stream should
use for control data (e.g.
|
java.net.DatagramSocket |
getDataSocket()
Returns a reference to the DatagramSocket that a stream should
use for data (e.g.
|
java.net.Socket |
getDataTCPSocket()
Returns a reference to the Socket that a stream should
use for data (e.g.
|
StreamConnector.Protocol |
getProtocol()
Returns the protocol of this StreamConnector.
|
boolean |
isRtcpmux()
Returns true if this StreamConnector uses rtcp-mux,
that is, if its data and control sockets share the same local address
and port.
|
void |
started()
Notifies this instance that utilization of its DatagramSockets
for data and/or control traffic has started.
|
void |
stopped()
Notifies this instance that utilization of its DatagramSockets
for data and/or control traffic has temporarily stopped.
|
protected final T extends StreamConnector streamConnector
public StreamConnectorDelegate(T streamConnector)
streamConnector
- the StreamConnector to be wrapped by the
new instancepublic void close()
StreamConnector.close()
on the StreamConnector wrapped
by this instance.close
in interface StreamConnector
public java.net.DatagramSocket getControlSocket()
getControlSocket
in interface StreamConnector
public java.net.Socket getControlTCPSocket()
getControlTCPSocket
in interface StreamConnector
public java.net.DatagramSocket getDataSocket()
getDataSocket
in interface StreamConnector
public java.net.Socket getDataTCPSocket()
getDataTCPSocket
in interface StreamConnector
public StreamConnector.Protocol getProtocol()
getProtocol
in interface StreamConnector
public void started()
started
in interface StreamConnector
public void stopped()
stopped
in interface StreamConnector
public boolean isRtcpmux()
isRtcpmux
in interface StreamConnector
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.