com.twitter.common.thrift
Class Thrift.ClientBuilder

java.lang.Object
  extended by com.twitter.common.thrift.Config.AbstractBuilder<Thrift.ClientBuilder>
      extended by com.twitter.common.thrift.Thrift.ClientBuilder
Enclosing class:
Thrift<T>

public final class Thrift.ClientBuilder
extends Config.AbstractBuilder<Thrift.ClientBuilder>

A builder class that allows modifications of call behavior to be made for a given Thrift client. Note that in the case of conflicting configuration calls, the last call wins. So, for example, the following sequence would result in all calls being subject to a 5 second global deadline: builder.blocking().withDeadline(5, TimeUnit.SECONDS).create()

See Also:
Config

Method Summary
 T create()
          Creates a new client using the built up configuration changes.
protected  Thrift.ClientBuilder getThis()
           
 
Methods inherited from class com.twitter.common.thrift.Config.AbstractBuilder
blocking, disableStats, getConfig, noRetries, retryOn, retryOn, withConnectTimeout, withDebug, withRequestTimeout, withRetries, withStatsProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getThis

protected Thrift.ClientBuilder getThis()
Specified by:
getThis in class Config.AbstractBuilder<Thrift.ClientBuilder>

create

public T create()
Creates a new client using the built up configuration changes.