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()
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
setTimeoutInfinite
public void setTimeoutInfinite()
rollbackTimeout
public void rollbackTimeout()
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()
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
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()
getAll
public List<Object> getAll()
getOne
public Object getOne()
Copyright © 2010. All Rights Reserved.