@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="BC_UNCONFIRMED_CAST",justification="Only JMXConnectionNotification instances are used.") public void handleNotification(Notification notification,Object handback){
  if (handback instanceof AgentImpl) {
    AgentImpl agent=(AgentImpl)handback;
    JMXConnectionNotification jmxNotifn=(JMXConnectionNotification)notification;
    if (logger.isDebugEnabled()) {
      logger.debug("Connection notification for connection id : '{}'",jmxNotifn.getConnectionId());
    }
    agent.updateRmiClientsCount();
  }
}

@ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = "BC_UNCONFIRMED_CAST" , justification = "Only JMXConnectionNotification instances are used." ) public void handleNotification ( Notification notification , Object handback ) { if ( handback instanceof AgentImpl ) { AgentImpl agent = ( AgentImpl ) handback ; JMXConnectionNotification jmxNotifn = ( JMXConnectionNotification ) notification ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Connection notification for connection id : '{}'" , jmxNotifn . getConnectionId ( ) ) ; } agent . updateRmiClientsCount ( ) ; } }
if the handback object passed is an agentimpl , updates the jmx client count
