Interface Strategy
-
- All Known Implementing Classes:
AbstractStrategy,StartNewStopOld,StopOldStartNew
public interface StrategyEncapsulates a switching strategy.- Author:
- Holger Eichelberger, SSE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S extends ServiceBase>
SdoSwitch(S sOld, S sNew)Performs the switch.
-
-
-
Method Detail
-
doSwitch
<S extends ServiceBase> S doSwitch(S sOld, S sNew)
Performs the switch.- Type Parameters:
S- the actual type of the service- Parameters:
sOld- the old service instancesNew- the new service instance- Returns:
- the active service
-
-