a queue-clint written in java