Class LicenseServerOperations

java.lang.Object
dev.demeng.sentinel.client.license.LicenseServerOperations

public final class LicenseServerOperations extends Object
Operations for managing license server identifiers.

Obtain an instance via LicenseService.servers().

  • Method Details

    • add

      public License add(String key, Set<String> identifiers) throws SentinelException
      Adds server identifiers to a license.
      Parameters:
      key - the license key
      identifiers - the set of server identifiers to add
      Returns:
      the updated license
      Throws:
      SentinelException - if a network or API error occurs
    • remove

      public License remove(String key, Set<String> identifiers) throws SentinelException
      Removes server identifiers from a license.
      Parameters:
      key - the license key
      identifiers - the set of server identifiers to remove
      Returns:
      the updated license
      Throws:
      SentinelException - if a network or API error occurs