Class FailoverNameResolver

java.lang.Object
com.societegenerale.failover.core.util.FailoverNameResolver

public final class FailoverNameResolver extends Object
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 Details

    • effectiveName

      public static String effectiveName(Failover failover)
      Returns failover.domain() when non-blank, otherwise failover.name().
      Parameters:
      failover - the annotation instance
      Returns:
      effective name used as FAILOVER_NAME in the store and as UUID key prefix