org.scale7.cassandra.pelops
Class IConnection.Config

java.lang.Object
  extended by org.scale7.cassandra.pelops.IConnection.Config
Enclosing interface:
IConnection

public static class IConnection.Config
extends Object


Constructor Summary
IConnection.Config(int thriftPort, boolean framedTransportRequired, int timeout)
          Config used when opening connections.
 
Method Summary
 int getThriftPort()
           
 int getTimeout()
           
 boolean isFramedTransportRequired()
           
 boolean isTimeoutSet()
          Determines if a timeout should be set on the thrift connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IConnection.Config

public IConnection.Config(int thriftPort,
                          boolean framedTransportRequired,
                          int timeout)
Config used when opening connections.

Parameters:
thriftPort - the port to connect to
framedTransportRequired - is framed transport required
timeout - the timeout (0 or less to use thrift default)
Method Detail

getThriftPort

public int getThriftPort()

isFramedTransportRequired

public boolean isFramedTransportRequired()

getTimeout

public int getTimeout()

isTimeoutSet

public boolean isTimeoutSet()
Determines if a timeout should be set on the thrift connection.

Returns:
true if the timeout value is greater than zero, false otherwise


Copyright © 2011. All Rights Reserved.