modify thrift queue to bounded queue