public void add ( Status newStatus ) { // LBCORE-72: fire event before the count check fireStatusAddEvent ( newStatus ) ; count ++ ; if ( newStatus . getLevel ( ) > level ) { level = newStatus . getLevel ( ) ; } synchronized ( statusListLock ) { if ( statusList . size ( ) < MAX_HEADER_COUNT ) { statusList . add ( newStatus ) ; } else { tailBuffer . add ( newStatus ) ; } } }
Add a new status object .