Interface AbstractRequestTask.Request<C>

    • Method Detail

      • getReplacementId

        default String getReplacementId()
        Gets a replacement identifier.

        In almost cases, it will be null and means there is no replacement to perform into queue.

        In rare cases, it will not be null and means that if it exists already a request into queue with a same identifier then this request must be replaced by the new one.

        Returns:
        a string representing a unique type. If null, the request behavior is the one of simple AbstractRequestTask.Request.
      • process

        void process​(C context)
              throws InterruptedException
        Process the request according to the given context.
        Parameters:
        context - the context of the process.
        Throws:
        InterruptedException - in case of technical error.