de.unikassel.android.sdcframework.transmission.facade
Interface ConnectionStrategy
- All Superinterfaces:
- ChainWorker<ProtocolStrategy>
- All Known Implementing Classes:
- AbstractConnectionStrategy, MobileConnectionStrategy, UseAvailableConnectionStrategy, WLANConnectionStrategy
public interface ConnectionStrategy
- extends ChainWorker<ProtocolStrategy>
Interface for connection strategy types.
A connection strategy is configured for the
upload manager to control the kind of Internet access.
Any connection strategy is a worker in a chain of strategies. If a strategy
has a successor and the strategy fails, it will call its successor to try
another connection strategy.
isConnectionAvailable
boolean isConnectionAvailable(ProtocolStrategy protocolStrategy)
- Method to test for an available connection
- Parameters:
protocolStrategy
- the upload strategy
- Returns:
- true if a connection is available, false otherwise