Implementation of Blocking Queue, wich can save his state to file