`flush` method for BulkProcessor class.