All Known Implementing Classes:
AbstractStrategy, StartNewStopOld, StopOldStartNew

public interface Strategy
Encapsulates a switching strategy.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    <S extends ServiceBase>
    S
    doSwitch(S sOld, S sNew)
    Performs the switch.
  • Method Details

    • 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 instance
      sNew - the new service instance
      Returns:
      the active service