void addAveMapSlotRefillMsecs ( int refillMsecs ) { synchronized ( mapSlotRefillMsecsQueue ) { mapSlotRefillMsecsQueue . add ( refillMsecs ) ; if ( mapSlotRefillMsecsQueue . size ( ) >= maxRefillQueueSize ) { mapSlotRefillMsecsQueue . remove ( ) ; } } }
Add this new refill time for the map slot refill queue . Delete the oldest value if the maximum size has been met .