Class FailoverNameResolver
java.lang.Object
com.societegenerale.failover.core.util.FailoverNameResolver
Resolves the effective store namespace for a
Failover annotation.
When Failover.domain() is non-blank it is used as the store namespace,
allowing multiple failovers covering the same business entity to share store entries.
When empty, Failover.name() is used — preserving existing behaviour.
- Author:
- Anand Manissery
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringeffectiveName(Failover failover) Returnsfailover.domain()when non-blank, otherwisefailover.name().
-
Method Details
-
effectiveName
Returnsfailover.domain()when non-blank, otherwisefailover.name().- Parameters:
failover- the annotation instance- Returns:
- effective name used as
FAILOVER_NAMEin the store and as UUID key prefix
-