public void sendBatch ( ) { LrsStatement statement = null ; List < LrsStatement > list = new ArrayList < LrsStatement > ( ) ; while ( ( statement = statementQueue . poll ( ) ) != null ) { list . add ( statement ) ; } if ( ! list . isEmpty ( ) ) { postStatementList ( list ) ; } }
Send a batch of LRS statements . MUST BE SCHEDULED! Failure to properly configure this class will result in memory leaks .