- All Implemented Interfaces:
This strategy uses a master strategy to pick the initial instance. Once picked, that instance is always returned. If, however, the currently selected instance is no longer in the list, the master strategy is used to pick a new instance.
masterStrategy- the strategy to use for picking the sticky instance
getInstanceDescription copied from interface:
ProviderStrategyGiven a source of instances, return one of them for a single use.
getInstanceNumberpublic int getInstanceNumber()Each time a new instance is picked, an internal counter is incremented. This way you can track when/if the instance changes. The instance can change when the selected instance is not in the current list of instances returned by the instance provider
- instance number