Class IntResource.Request<T extends Number & Comparable<T>>

    • Constructor Detail

      • Request

        public Request​(IntResourceRequestorInterface<T> requestor,
                       long amount,
                       int priority)
        constructs a new Request.
        Parameters:
        requestor - IntResourceRequestorInterface<T>; the requestor
        amount - long; the requested amount
        priority - int; the priority of the request
    • Method Detail

      • getAmount

        public long getAmount()
        gets the requested amount.
        Returns:
        the requested amount
      • getPriority

        public int getPriority()
        returns the priority of the request.
        Returns:
        the priority
      • getId

        public long getId()
        returns the id of the request.
        Returns:
        the id