protected void updateTicketState ( ) { LOGGER . trace ( "Before updating ticket [{}]\n\tPrevious time used: [{}]\n\tLast time used: [{}]\n\tUsage count: [{}]" , getId ( ) , this . previousTimeUsed , this . lastTimeUsed , this . countOfUses ) ; this . previousTimeUsed = ZonedDateTime . from ( this . lastTimeUsed ) ; this . lastTimeUsed = ZonedDateTime . now ( ZoneOffset . UTC ) ; this . countOfUses ++ ; LOGGER . trace ( "After updating ticket [{}]\n\tPrevious time used: [{}]\n\tLast time used: [{}]\n\tUsage count: [{}]" , getId ( ) , this . previousTimeUsed , this . lastTimeUsed , this . countOfUses ) ; }
Update ticket state .