Package org.apache.cxf.clustering
Interface PerInvocationFailoverStrategy
- All Known Implementing Classes:
RetryStrategy
public interface PerInvocationFailoverStrategy
Marker interface for
FailoverStrategy implementations that carry
per-invocation mutable state (e.g. a retry counter).
When FailoverTargetSelector detects that the configured strategy
implements this interface it calls newStrategy() at the start of
each top-level invocation and uses the returned instance for all failover
decisions belonging to that invocation. The shared bean is therefore never
mutated during normal processing and is safe to configure as a singleton.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a newFailoverStrategyinstance pre-configured with the same settings asthisbut with a fresh, zeroed mutable state.
-
Method Details
-
newStrategy
FailoverStrategy newStrategy()Returns a newFailoverStrategyinstance pre-configured with the same settings asthisbut with a fresh, zeroed mutable state. Called once per top-level invocation byFailoverTargetSelector.
-