#NEWLINE# def __init__( self , server , framed_transport , timeout , recycle ) : #NEWLINE# #INDENT# socket = TSocket . TSocket ( server . hostname , server . port ) #NEWLINE# if ( timeout is not None ) : #NEWLINE# #INDENT# socket . setTimeout ( ( timeout * 1000.0 ) ) #NEWLINE# #UNINDENT# if framed_transport : #NEWLINE# #INDENT# transport = TTransport . TFramedTransport ( socket ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# transport = TTransport . TBufferedTransport ( self ) #NEWLINE# #UNINDENT# protocol = TBinaryProtocol . TBinaryProtocolAccelerated ( transport ) #NEWLINE# client = Rest . Client ( protocol ) #NEWLINE# transport . open ( ) #NEWLINE# self . client = client #NEWLINE# self . transport = transport #NEWLINE# if recycle : #NEWLINE# #INDENT# self . recycle = ( ( time . time ( ) + recycle ) + random . uniform ( 0 , ( recycle * 0.1 ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . recycle = None