public class MultiplexTransportConfig extends BaseTransportConfig
| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiplexTransportConfig.TransportListener
Callback to be used if the state of the transports needs to be monitored for any reason.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_MULTI_SECURITY_HIGH
Multiplexing security will be very strict.
|
static int |
FLAG_MULTI_SECURITY_LOW
Multiplexing security will be minimal.
|
static int |
FLAG_MULTI_SECURITY_MED
Multiplexing security will be on at a normal level.
|
static int |
FLAG_MULTI_SECURITY_OFF
Multiplexing security will be turned off.
|
iHeartBeatTimeout| Constructor and Description |
|---|
MultiplexTransportConfig(Context context,
String appId) |
MultiplexTransportConfig(Context context,
String appId,
int securityLevel) |
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Gets the context attached to this config
|
List<TransportType> |
getPrimaryTransports()
Get the list of primary transports that are set to be accepted by this config
|
List<TransportType> |
getSecondaryTransports()
Get the list of secondary transports that are set to be accepted by this config
|
int |
getSecurityLevel()
Get the security level that will be used to verify a router service before binding
|
ComponentName |
getService()
Gets the ComponentName of the router service attached to this config
|
MultiplexTransportConfig.TransportListener |
getTransportListener()
Getter for the supplied transport listener
|
TransportType |
getTransportType()
Overridden abstract method which returns specific type of this transport configuration.
|
Boolean |
requiresAudioSupport()
Get the setting from this config to see whether the app should be treated as requiring an
audio streaming output device
|
boolean |
requiresHighBandwidth()
Get the setting from this config to see whether the app should be treated as requiring a high
bandwidth transport.
|
void |
setPrimaryTransports(List<TransportType> transports)
This will set the order in which a primary transport is determined to be accepted or not.
|
void |
setRequiresAudioSupport(boolean requiresAudioSupport)
Set whether or not this app requires the use of an audio streaming output device
|
void |
setRequiresHighBandwidth(boolean requiresHighBandwidth)
Set whether or not this app requires the use of a transport that supports high bandwidth
services.
|
void |
setSecondaryTransports(List<TransportType> transports)
This will set the order in which a primary transport is determined to be accepted or not.
|
void |
setSecurityLevel(int securityLevel)
Sets the security level that should be used to verify a router service that is to be bound
|
void |
setService(ComponentName service)
Supplies the config with the router service that should be bound to
|
void |
setTransportListener(MultiplexTransportConfig.TransportListener listener)
Set a lister for transport events.
|
getHeartBeatTimeout, setHeartBeatTimeoutpublic static final int FLAG_MULTI_SECURITY_OFF
public static final int FLAG_MULTI_SECURITY_LOW
public static final int FLAG_MULTI_SECURITY_MED
public static final int FLAG_MULTI_SECURITY_HIGH
public TransportType getTransportType()
getTransportType in class BaseTransportConfigTransportTypepublic Context getContext()
public ComponentName getService()
public void setService(ComponentName service)
service - the router service that should be bound topublic void setSecurityLevel(int securityLevel)
securityLevel - the security level that will be used to perform certain testsFLAG_MULTI_SECURITY_OFF,
FLAG_MULTI_SECURITY_LOW,
FLAG_MULTI_SECURITY_MED,
FLAG_MULTI_SECURITY_HIGHpublic int getSecurityLevel()
FLAG_MULTI_SECURITY_OFF,
FLAG_MULTI_SECURITY_LOW,
FLAG_MULTI_SECURITY_MED,
FLAG_MULTI_SECURITY_HIGHpublic void setRequiresHighBandwidth(boolean requiresHighBandwidth)
requiresHighBandwidth - whether the app should be treated as requiring a high
bandwidth transport.public boolean requiresHighBandwidth()
public void setRequiresAudioSupport(boolean requiresAudioSupport)
requiresAudioSupport - whether the app should be treated as requiring an audio streaming
output devicepublic Boolean requiresAudioSupport()
public void setPrimaryTransports(List<TransportType> transports)
transports - list of transports that can be used as primarypublic List<TransportType> getPrimaryTransports()
public void setSecondaryTransports(List<TransportType> transports)
transports - list of transports that can be used as secondarypublic List<TransportType> getSecondaryTransports()
public void setTransportListener(MultiplexTransportConfig.TransportListener listener)
listener - the TransportListener that will be called back when transport events happenpublic MultiplexTransportConfig.TransportListener getTransportListener()