private void capacityWarn(){
  if (warningCounter == 0) {
    LOGGER.warn("The maximum capacity of the SynchroBuffer was reached (current size is " + buffer.size() + ") - FIFO was applied to the buffer.");
    warningCounter=WARNING_FREQUENCY;
  }
 else {
    warningCounter=warningCounter - 1;
  }
}

private void capacityWarn ( ) { if ( warningCounter == 0 ) { LOGGER . warn ( "The maximum capacity of the SynchroBuffer was reached (current size is " + buffer . size ( ) + ") - FIFO was applied to the buffer." ) ; warningCounter = WARNING_FREQUENCY ; } else { warningCounter = warningCounter - 1 ; } }
log a warning message if the capacity is reached ( every 500 times the capacity is reached , so as not to overload the logger ) .
