/** * Determine whether this batch needs to be executed (there are requests and the batch has not been executed yet). * * @return true if there are some requests in this batch that need to be executed, or false execution is not required */ public boolean isExecuteRequired() { return !executed && requestQueue.hasRequests(); }