Interface ResourceId

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

    @Deprecated(since="10",
                forRemoval=true)
    @FunctionalInterface
    public interface ResourceId
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resource Management is deprecated for removal with no replacement.
    ResourceId provides a name and accuracy for a resource instance.
    Since:
    8u40
    • Method Detail

      • getName

        String getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the name of the resource.

        The name is opaque and depends on the type of the resource.

        Returns:
        the name for the resource, may be null
      • getAccuracy

        default ResourceAccuracy getAccuracy()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the accuracy of the measurement for the current resource request.
        Implementation Note:
        the default behavior is to return null
        Returns:
        Returns the accuracy of the measurement of the current resource request; null if the accuracy is unknown