Interface ResourceAdminService


  • @Beta
    public interface ResourceAdminService
    Service for administering resource service behavior.
    • Method Detail

      • register

        default boolean register​(Resource... resources)
        Registers the specified resources.
        Parameters:
        resources - resources to be registered
        Returns:
        true if registration is successfully done, false otherwise. Registration succeeds when each resource is not registered or unallocated.
      • register

        boolean register​(java.util.List<? extends Resource> resources)
        Registers the specified resources.
        Parameters:
        resources - resources to be registered
        Returns:
        true if registration is successfully done, false otherwise. Registration succeeds when each resource is not registered or unallocated.
      • unregister

        default boolean unregister​(ResourceId... ids)
        Unregisters the specified resources.
        Parameters:
        ids - IDs of resources to be unregistered
        Returns:
        true if unregistration is successfully done, false otherwise. Unregistration succeeds when each resource is not registered or unallocated.
      • unregister

        boolean unregister​(java.util.List<? extends ResourceId> ids)
        Unregisters the specified resources.
        Parameters:
        ids - IDs of resources to be unregistered
        Returns:
        true if unregistration is successfully done, false otherwise. Unregistration succeeds when each resource is not registered or unallocated.