Interface LicenseTokenManager

  • All Known Implementing Classes:
    ServerLicenseManager

    public interface LicenseTokenManager
    Grants license tokens to agents
    • Method Detail

      • grantLicense

        void grantLicense​(@NotNull
                          BuildAgentEx agent)
                   throws LicenseNotGrantedException
        Checks whether a license token can be granted to the specified agent. If token cannot be granted LicenseNotGrantedException is thrown.
        Parameters:
        agent - agent to grant license to
        Throws:
        LicenseNotGrantedException - if there is not enough license tokens