question: synchronized private boolean haveDataToTransmit ( ) { if ( ! transmitResult . compareAndSet ( BKException . Code . OK , BKException . Code . OK ) ) { return false ; } return ( recordSetWriter . getNumRecords ( ) > 0 ) ; }
target:  Checks if there is any data to transmit so that the periodic flush task can determine if there is anything it needs to do