boolean function ( ) { return workCnt . get ( ) > 0 ; }
returns true if there are items in producerconsumer that are either pending for processing or waiting to be consumed . concode_field_sep LinkedBlockingQueue<WorkRequest<T>> inputQueue concode_elem_sep ExecutorService executor concode_elem_sep LinkedBlockingQueue<WorkReport<R>> outputQueue concode_elem_sep Log LOG concode_elem_sep WorkRequestProcessor<T,R> processor concode_elem_sep AtomicInteger workCnt concode_field_sep WorkReport<R> take concode_elem_sep WorkReport<R> blockingTake concode_elem_sep void addWorker concode_elem_sep int getWorkCnt concode_elem_sep void run concode_elem_sep void shutdown concode_elem_sep void put