Interface RoleChangeHandler

  • All Known Implementing Classes:
    JoinElectionDomain
    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 interface RoleChangeHandler
    Defines the callbacks invoked by a DomainManager when a registrant changes roles.
    • Method Detail

      • handleRoleChange

        void handleRoleChange​(Role role,
                              java.lang.String domain)
        Handle role changing. Implementations of this method must not block.
        Parameters:
        role - the new role
        domain - the domain the role is being changed for