redis.clients.jedis
Class Connection
java.lang.Object
redis.clients.jedis.Connection
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- BinaryClient
public class Connection
- extends Object
- implements Closeable
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()
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()
close
public void close()
- Specified by:
close
in interface Closeable
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()
resetPipelinedCount
public void resetPipelinedCount()
getRawObjectMultiBulkReply
public List<Object> getRawObjectMultiBulkReply()
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()
isBroken
public boolean isBroken()
flush
protected void flush()
readProtocolWithCheckingBroken
protected Object readProtocolWithCheckingBroken()
Copyright © 2014. All rights reserved.