lib/thrift_client/thrift.rb in fl-thrift_client-0.4.2 vs lib/thrift_client/thrift.rb in fl-thrift_client-0.5.0
- old
+ new
@@ -1,15 +1,34 @@
module Thrift
+ class BaseTransport
+ def timeout=(timeout)
+ end
+
+ def timeout
+ nil
+ end
+ end
+
class BufferedTransport
def timeout=(timeout)
@transport.timeout = timeout
end
def timeout
@transport.timeout
end
end
+ class FramedTransport
+ def timeout=(timeout)
+ @transport.timeout = timeout
+ end
+
+ def timeout
+ @transport.timeout
+ end
+ end
+
module Client
def timeout=(timeout)
@iprot.trans.timeout = timeout
end