class Concurrent::JavaThreadPoolExecutor

def remaining_capacity

@!macro thread_pool_executor_attr_reader_remaining_capacity
def remaining_capacity
  @max_queue == 0 ? -1 : @executor.getQueue.remainingCapacity
end