public class TransportManager extends TransportManagerBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TransportManager.LegacyBluetoothHandler |
protected class |
TransportManager.TransportBrokerImpl |
TransportManagerBase.TransportEventListener| Constructor and Description |
|---|
TransportManager(MultiplexTransportConfig config,
TransportManagerBase.TransportEventListener listener)
Managing transports
List for status of all transports
If transport is not connected.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(long sessionId) |
List<TransportRecord> |
getConnectedTransports()
Retrieves the currently connected transports
|
TransportRecord |
getTransportRecord(TransportType transportType,
String address)
Retrieve a transport record with the supplied params
|
boolean |
isConnected(TransportType transportType,
String address)
Check to see if a transport is connected.
|
boolean |
isHighBandwidthAvailable() |
void |
requestNewSession(TransportRecord transportRecord)
Base implementation does nothing and assumes it is not necessary.
|
void |
requestSecondaryTransportConnection(byte sessionId,
TransportRecord transportRecord) |
void |
sendPacket(SdlPacket packet) |
void |
start()
start internally validates the target ROuterService, which was done in ctor before.
|
BaseTransportConfig |
updateTransportConfig(BaseTransportConfig config) |
public TransportManager(MultiplexTransportConfig config, TransportManagerBase.TransportEventListener listener)
public void start()
start in class TransportManagerBasepublic void close(long sessionId)
close in class TransportManagerBasepublic boolean isConnected(TransportType transportType, String address)
isConnected in class TransportManagerBasetransportType - the transport to have its connection status returned. If `null` is
passed in, all transports will be checked and if any are connected a
true value will be returned.address - the address associated with the transport type. If null, the first transport
of supplied type will be used to return if connected.public TransportRecord getTransportRecord(TransportType transportType, String address)
getTransportRecord in class TransportManagerBasetransportType - the transport to have its connection status returned.address - the address associated with the transport type. If null, the first transport
of supplied type will be returned.public List<TransportRecord> getConnectedTransports()
getConnectedTransports in class TransportManagerBasepublic boolean isHighBandwidthAvailable()
isHighBandwidthAvailable in class TransportManagerBasepublic BaseTransportConfig updateTransportConfig(BaseTransportConfig config)
updateTransportConfig in class TransportManagerBasepublic void sendPacket(SdlPacket packet)
sendPacket in class TransportManagerBasepublic void requestNewSession(TransportRecord transportRecord)
TransportManagerBaserequestNewSession in class TransportManagerBasetransportRecord - the transport that the new session should be assigned topublic void requestSecondaryTransportConnection(byte sessionId,
TransportRecord transportRecord)
requestSecondaryTransportConnection in class TransportManagerBase