redis.clients.jedis
Class Connection

java.lang.Object
  extended by redis.clients.jedis.Connection
Direct Known Subclasses:
BinaryClient

public class Connection
extends Object


Constructor Summary
Connection()
           
Connection(String host)
           
Connection(String host, int port)
           
 
Method Summary
 void connect()
           
 void disconnect()
           
protected  void flush()
           
 List<Object> getAll()
           
 List<Object> getAll(int except)
           
 byte[] getBinaryBulkReply()
           
 List<byte[]> getBinaryMultiBulkReply()
           
 String getBulkReply()
           
 String getHost()
           
 List<Long> getIntegerMultiBulkReply()
           
 Long getIntegerReply()
           
 List<String> getMultiBulkReply()
           
 List<Object> getObjectMultiBulkReply()
           
 Object getOne()
           
 int getPort()
           
 Socket getSocket()
           
protected  String getStatusCodeReply()
           
 int getTimeout()
           
 boolean isConnected()
           
 void rollbackTimeout()
           
protected  Connection sendCommand(Protocol.Command cmd)
           
protected  Connection sendCommand(Protocol.Command cmd, byte[]... args)
           
protected  Connection sendCommand(Protocol.Command cmd, String... args)
           
 void setHost(String host)
           
 void setPort(int port)
           
 void setTimeout(int timeout)
           
 void setTimeoutInfinite()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(String host)

Connection

public Connection(String host,
                  int port)

Connection

public Connection()
Method Detail

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.