private void auditPrivateSequence ( final long nextPrivateSequnceNumber ) { if ( privateSequence == - 1 ) { privateSequence = nextPrivateSequnceNumber ; return ; } if ( privateSequence + 1 != nextPrivateSequnceNumber ) { final String errorMessage = String . format ( "Got %d as next private sequence number, expected %d", privateSequence + 1 , nextPrivateSequnceNumber ) ; handleError ( errorMessage ) ; return ; } privateSequence ++ ; }
Audit the private sequence