Class: Sfeed::IBlockHandler::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/i_block_handler.rb

Instance Method Summary collapse

Instance Method Details

#process_checkBlock(seqid, iprot, oprot) ⇒ Object



49
50
51
52
53
54
# File 'lib/i_block_handler.rb', line 49

def process_checkBlock(seqid, iprot, oprot)
  args = read_args(iprot, CheckBlock_args)
  result = CheckBlock_result.new()
  result.success = @handler.checkBlock(args.albumId, args.albumUid, args.uids)
  write_result(result, oprot, 'checkBlock', seqid)
end

#process_invalidCache(seqid, iprot, oprot) ⇒ Object



56
57
58
59
60
61
# File 'lib/i_block_handler.rb', line 56

def process_invalidCache(seqid, iprot, oprot)
  args = read_args(iprot, InvalidCache_args)
  result = InvalidCache_result.new()
  @handler.invalidCache(args.albumId, args.albumUid)
  write_result(result, oprot, 'invalidCache', seqid)
end