public class ConnectivityManagerProxy extends Proxy<ConnectivityManager> implements ConnectivityManager
Constructor and Description |
---|
ConnectivityManagerProxy() |
Modifier and Type | Method and Description |
---|---|
void |
addConnectivityListener(ConnectivityListener listener)
Adds a listener.
|
int |
getAvailable()
Returns the numbers of available connections.
|
String |
getConnectionInfo()
Returns a String representing how the service can be joined from remote
clients.
|
void |
removeConnectivityListener(ConnectivityListener listener)
Removes a listener.
|
getReference, invoke, invokeBoolean, invokeByte, invokeChar, invokeDouble, invokeFloat, invokeInt, invokeLong, invokeRef, invokeShort
public void addConnectivityListener(ConnectivityListener listener)
ConnectivityManager
addConnectivityListener
in interface ConnectivityManager
listener
- the listener.public int getAvailable()
ConnectivityManager
getAvailable
in interface ConnectivityManager
public String getConnectionInfo()
ConnectivityManager
Examples of such strings are:
192.168.0.1:4000
for a service listening on a TCP port
on these addresses and ports.
for a service listening on a TCP port on these
addresses and ports.
comm:com6;baudrate=115200
for a service listening on a
COMM port with these parameters
getConnectionInfo
in interface ConnectivityManager
public void removeConnectivityListener(ConnectivityListener listener)
ConnectivityManager
removeConnectivityListener
in interface ConnectivityManager
listener
- the listener.