synchronized private boolean haveDataToTransmit(){
  if (!transmitResult.compareAndSet(BKException.Code.OK,BKException.Code.OK)) {
    return false;
  }
  return (recordSetWriter.getNumRecords() > 0);
}

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