class Thrift::SqsServerTransport

Public Class Methods

new(queue_name, aws_key, aws_secret, options = {}) click to toggle source
# File lib/thrift-sqs-transport.rb, line 6
def initialize(queue_name, aws_key, aws_secret, options = {})
  @queue_name, @aws_key, @aws_secret = queue_name, aws_key, aws_secret
  @options = options
end

Public Instance Methods

accept() click to toggle source
# File lib/thrift-sqs-transport.rb, line 15
def accept
  @transport
end
close() click to toggle source
# File lib/thrift-sqs-transport.rb, line 19
def close
  @transport.close if @transport
end
closed?() click to toggle source
# File lib/thrift-sqs-transport.rb, line 23
def closed?
   @transport && !@transport.open?
end
listen() click to toggle source
# File lib/thrift-sqs-transport.rb, line 11
def listen
  @transport = SqsTransport.new(@queue_name, @aws_key, @aws_secret, @options)
end