Code example for InetAddress

Methods: equals

0
        convict(endpoint, Double.MAX_VALUE);
    } 
 
    public void convict(InetAddress endpoint, double phi)
    { 
        if (!endpoint.equals(getHost()))
            return; 
 
        // We want a higher confidence in the failure detection than usual because failing a streaming wrongly has a high cost. 
        if (phi < 2 * DatabaseDescriptor.getPhiConvictThreshold())
            return; 
 
        logger.error("Stream failed because {} died or was restarted/removed (streams may still be active "
                      + "in background, but further streams won't be started)", endpoint);
        close(false); 
    } 
} 
Experience pair programming with AI  Get Codota for Java