public class Connection extends Object implements Closeable
Constructor and Description |
---|
Connection() |
Connection(HostAndPort hostAndPort,
JedisClientConfig clientConfig) |
Connection(JedisSocketFactory jedisSocketFactory) |
Connection(String host)
Deprecated.
This constructor will be removed in future. It can be replaced with
Connection(java.lang.String, int) with the host and Protocol.DEFAULT_PORT . |
Connection(String host,
int port) |
Connection(String host,
int port,
boolean ssl)
Deprecated.
This constructor will be removed in future.
|
Connection(String host,
int port,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier)
Deprecated.
This constructor will be removed in future.
|
public Connection()
@Deprecated public Connection(String host)
Connection(java.lang.String, int)
with the host and Protocol.DEFAULT_PORT
.host
- public Connection(String host, int port)
@Deprecated public Connection(String host, int port, boolean ssl)
@Deprecated public Connection(String host, int port, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier)
public Connection(HostAndPort hostAndPort, JedisClientConfig clientConfig)
public Connection(JedisSocketFactory jedisSocketFactory)
public Socket getSocket()
public int getConnectionTimeout()
public int getSoTimeout()
@Deprecated public void setConnectionTimeout(int connectionTimeout)
connectionTimeout
- public void setSoTimeout(int soTimeout)
public void setInfiniteSoTimeout(int infiniteSoTimeout)
public void setTimeoutInfinite()
public void rollbackTimeout()
public void sendCommand(ProtocolCommand cmd, String... args)
public void sendCommand(ProtocolCommand cmd)
public void sendCommand(ProtocolCommand cmd, byte[]... args)
public String getHost()
@Deprecated public void setHost(String host)
host
- public int getPort()
@Deprecated public void setPort(int port)
port
- public void connect() throws JedisConnectionException
JedisConnectionException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void disconnect()
public boolean isConnected()
public String getStatusCodeReply()
public String getBulkReply()
public byte[] getBinaryBulkReply()
public Long getIntegerReply()
public List<byte[]> getBinaryMultiBulkReply()
@Deprecated public List<Object> getRawObjectMultiBulkReply()
public Object getOne()
public boolean isBroken()
protected void flush()
protected Object readProtocolWithCheckingBroken()
Copyright © 2021. All rights reserved.