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()
           
 List<Object> getAll()
           
 byte[] getBinaryBulkReply()
           
 List<byte[]> getBinaryMultiBulkReply()
           
 String getBulkReply()
           
 String getHost()
           
 Long getIntegerReply()
           
 List<String> getMultiBulkReply()
           
 List<Object> getObjectMultiBulkReply()
           
 Object getOne()
           
 int getPort()
           
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

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.