redis.clients.jedis
Class Connection
java.lang.Object
redis.clients.jedis.Connection
- Direct Known Subclasses:
- BinaryClient
public class Connection
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connection
public Connection(String host)
Connection
public Connection(String host,
int port)
Connection
public Connection()
getSocket
public Socket getSocket()
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
setTimeoutInfinite
public void setTimeoutInfinite()
rollbackTimeout
public void rollbackTimeout()
flush
protected void flush()
sendCommand
protected Connection sendCommand(Protocol.Command cmd,
String... args)
sendCommand
protected Connection sendCommand(Protocol.Command cmd,
byte[]... args)
sendCommand
protected Connection sendCommand(Protocol.Command cmd)
getHost
public String getHost()
setHost
public void setHost(String host)
getPort
public int getPort()
setPort
public void setPort(int port)
connect
public void connect()
disconnect
public void disconnect()
isConnected
public boolean isConnected()
getStatusCodeReply
protected String getStatusCodeReply()
getBulkReply
public String getBulkReply()
getBinaryBulkReply
public byte[] getBinaryBulkReply()
getIntegerReply
public Long getIntegerReply()
getMultiBulkReply
public List<String> getMultiBulkReply()
getBinaryMultiBulkReply
public List<byte[]> getBinaryMultiBulkReply()
getObjectMultiBulkReply
public List<Object> getObjectMultiBulkReply()
getIntegerMultiBulkReply
public List<Long> getIntegerMultiBulkReply()
getAll
public List<Object> getAll()
getAll
public List<Object> getAll(int except)
getOne
public Object getOne()
Copyright © 2012. All Rights Reserved.