org.scale7.cassandra.pelops
Class IConnection.Config
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IConnection.Config
public IConnection.Config(int thriftPort,
boolean framedTransportRequired,
int timeout)
- Config used when opening connections.
- Parameters:
thriftPort
- the port to connect toframedTransportRequired
- is framed transport requiredtimeout
- the timeout (0 or less to use thrift default)
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.