Code example for Socket

Methods: setKeepAlivesetSoTimeout

0
        } 
    } 
 
    public void rollbackTimeout() { 
        try { 
            socket.setSoTimeout(timeout);
            socket.setKeepAlive(false);
        } catch (SocketException ex) {
            throw new JedisException(ex);
        } 
    } 
 
    public Connection(final String host) {
        super(); 
        this.host = host;
    } 
 
    protected void flush() { 
        try { 
            outputStream.flush();
Experience pair programming with AI  Get Codota for Java