public abstract class TransportManagerBase extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TransportManagerBase.TransportEventListener |
| Constructor and Description |
|---|
TransportManagerBase(BaseTransportConfig config,
TransportManagerBase.TransportEventListener listener) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close(long sessionId) |
List<TransportRecord> |
getConnectedTransports()
Retrieves the currently connected transports
|
abstract TransportRecord |
getTransportRecord(TransportType transportType,
String address)
Retrieve a transport record with the supplied params
|
abstract 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) |
abstract void |
sendPacket(SdlPacket packet) |
abstract void |
start() |
BaseTransportConfig |
updateTransportConfig(BaseTransportConfig config) |
public TransportManagerBase(BaseTransportConfig config, TransportManagerBase.TransportEventListener listener)
public abstract void start()
public abstract void close(long sessionId)
public abstract boolean isConnected(TransportType transportType, String address)
transportType - 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 abstract TransportRecord getTransportRecord(TransportType transportType, String address)
transportType - 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()
public boolean isHighBandwidthAvailable()
public BaseTransportConfig updateTransportConfig(BaseTransportConfig config)
public abstract void sendPacket(SdlPacket packet)
public void requestNewSession(TransportRecord transportRecord)
transportRecord - the transport that the new session should be assigned topublic void requestSecondaryTransportConnection(byte sessionId,
TransportRecord transportRecord)