public void sessionEnd ( SessionStatus finishState ) { if ( sessionStatusToMetrics . containsKey ( finishState ) ) { sessionStatusToMetrics . get ( finishState ) . inc ( ) ; } else { throw new IllegalArgumentException ( "Invalid end state " + finishState ) ; } }
Record the end of a session .