geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ClientHealthMonitor.java
private void unregisterClient(ClientProxyMembershipID proxyID, boolean clientDisconnectedCleanly,
      Throwable clientDisconnectException) {
    boolean unregisterClient = false;
    synchronized (_clientHeartbeatsLock) {
      Map oldClientHeartbeats = this._clientHeartbeats;
      if (oldClientHeartbeats.containsKey(proxyID)) {
        unregisterClient = true;
        Map newClientHeartbeats = new HashMap(oldClientHeartbeats);
        newClientHeartbeats.remove(proxyID);
        this._clientHeartbeats = newClientHeartbeats;
      }
    }

    if (unregisterClient) {
      if (clientDisconnectedCleanly) {
        if (logger.isDebugEnabled()) {
          logger.debug(LocalizedMessage.create(
              LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0,
              new Object[] {proxyID}));
        }
      } else {
        logger.warn(LocalizedMessage.create(
            LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0_DUE_TO_1,
            new Object[] {proxyID, clientDisconnectException == null ? "Unknown reason"
                : clientDisconnectException.getLocalizedMessage()}));
      }
      if (this.stats != null) {
        this.stats.incClientUnRegisterRequests();
      }
      expireTXStates(proxyID);
    }
  }
/**
   * Takes care of unregistering from the _clientHeatBeats map.
   * 
   * @param proxyID The id of the client to be unregistered
   */
Takes care of unregistering from the _clientHeatBeats map.

@param proxyID The id of the client to be unregistered
Takes care of unregistering from the _clientHeatBeats map . @param proxyID The id of the client to be unregistered
private void unregisterClient(ClientProxyMembershipID proxyID, boolean clientDisconnectedCleanly,
      Throwable clientDisconnectException) {
    boolean unregisterClient = false;
    synchronized (_clientHeartbeatsLock) {
      Map oldClientHeartbeats = this._clientHeartbeats;
      if (oldClientHeartbeats.containsKey(proxyID)) {
        unregisterClient = true;
        Map newClientHeartbeats = new HashMap(oldClientHeartbeats);
        newClientHeartbeats.remove(proxyID);
        this._clientHeartbeats = newClientHeartbeats;
      }
    }
    if (unregisterClient) {
      if (clientDisconnectedCleanly) {
        if (logger.isDebugEnabled()) {
          logger.debug(LocalizedMessage.create(
              LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0,
              new Object[] {proxyID}));
        }
      } else {
        logger.warn(LocalizedMessage.create(
            LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0_DUE_TO_1,
            new Object[] {proxyID, clientDisconnectException == null ? "Unknown reason"
                : clientDisconnectException.getLocalizedMessage()}));
      }
      if (this.stats != null) {
        this.stats.incClientUnRegisterRequests();
      }
      expireTXStates(proxyID);
    }
  }
private void unregisterClient ( ClientProxyMembershipID proxyID , boolean clientDisconnectedCleanly , Throwable clientDisconnectException ) { boolean unregisterClient = false ; synchronized ( _clientHeartbeatsLock ) { Map oldClientHeartbeats = this . _clientHeartbeats ; if ( oldClientHeartbeats . containsKey ( proxyID ) ) { unregisterClient = true ; Map newClientHeartbeats = new HashMap ( oldClientHeartbeats ) ; newClientHeartbeats . remove ( proxyID ) ; this . _clientHeartbeats = newClientHeartbeats ; } } if ( unregisterClient ) { if ( clientDisconnectedCleanly ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( LocalizedMessage . create ( LocalizedStrings . ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0 , new Object [ ] { proxyID } ) ) ; } } else { logger . warn ( LocalizedMessage . create ( LocalizedStrings . ClientHealthMonitor_CLIENTHEALTHMONITOR_UNREGISTERING_CLIENT_WITH_MEMBER_ID_0_DUE_TO_1 , new Object [ ] { proxyID , clientDisconnectException == null ? "Unknown reason" : clientDisconnectException . getLocalizedMessage ( ) } ) ) ; } if ( this . stats != null ) { this . stats . incClientUnRegisterRequests ( ) ; } expireTXStates ( proxyID ) ; } }
Takes care of unregistering from the _clientHeatBeats map.
Takes care of unregistering from the _clientHeatBeats map .