boolean shouldDrainBuffers ( boolean delayable ) { if ( executor . isShutdown ( ) ) { DrainStatus status = drainStatus . get ( ) ; return ( status != PROCESSING ) && ( ! delayable || ( status == REQUIRED ) ) ; } return false ; }
Determines whether the buffers should be drained .