Interface JwtAuthorityRepository.ClusterCriticalSection

  • Enclosing interface:
    JwtAuthorityRepository
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface JwtAuthorityRepository.ClusterCriticalSection
    Critical section logic for the cluster.
    • Method Detail

      • doClusterCriticalSection

        void doClusterCriticalSection​(JwtAuthorityRepository repository)
                               throws java.lang.Exception
        Undertakes the critical section.
        Parameters:
        repository - Allows overriding the JwtAuthorityRepository to provide context for the cluster locking. This JwtAuthorityRepository will be used for the critical section logic.
        Throws:
        java.lang.Exception - Possible failure from critical section.