test_class.file: migration/third-party/org.mapdb/src/test/java/org/mapdb/QueuesTest.java
test_class.identifier: QueuesTest
test_case.body: @Test public void queue_persisted(){
          File f = Utils.tempDbFile();
          DB db = DBMaker.newFileDB(f).journalDisable().cacheDisable().asyncWriteDisable().make();
          Queue<Object> queue = db.getQueue("test");
          queue.add("1");
          queue.add("2");
          queue.add("3");
          queue.add("4");
  
          db.close();
          db = DBMaker.newFileDB(f).journalDisable().cacheDisable().asyncWriteDisable().deleteFilesAfterClose().make();
          queue = db.getQueue("test");
  
          assertEquals("1", queue.poll());
          assertEquals("2", queue.poll());
          assertEquals("3", queue.poll());
          assertEquals("4", queue.poll());
          assertNull(queue.poll());
          db.close();
      }
test_case.class_method_signature: QueuesTest.queue_persisted()
test_case.full_signature: @Test public void queue_persisted()
test_case.identifier: queue_persisted
test_case.invocations: tempDbFile make asyncWriteDisable cacheDisable journalDisable newFileDB getQueue add add add add close make deleteFilesAfterClose asyncWriteDisable cacheDisable journalDisable newFileDB getQueue assertEquals poll assertEquals poll assertEquals poll assertEquals poll assertNull poll close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void queue_persisted()
focal_class.file: migration/third-party/org.mapdb/src/main/java/org/mapdb/Queues.java
focal_class.identifier: Queues
focal_class.class_method_signature: Queues.Queues()
focal_class.full_signature: private  Queues()
focal_class.identifier: Queues
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Queues()
focal_class.class_method_signature: Queues.createStack(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, boolean useLocks)
focal_class.full_signature: static long createStack(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, boolean useLocks)
focal_class.identifier: createStack
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, boolean useLocks)
focal_class.return: long
focal_class.signature: long createStack(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, boolean useLocks)
focal_class.class_method_signature: Queues.getStack(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.full_signature: static Stack<E> getStack(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.identifier: getStack
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.return: Stack<E>
focal_class.signature: Stack<E> getStack(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.class_method_signature: Queues.createQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer)
focal_class.full_signature: static long createQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer)
focal_class.identifier: createQueue
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer)
focal_class.return: long
focal_class.signature: long createQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer)
focal_class.class_method_signature: Queues.getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.full_signature: static Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.identifier: getQueue
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.class_method_signature: Queues.createCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, long size)
focal_class.full_signature: static long createCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, long size)
focal_class.identifier: createCircularQueue
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, long size)
focal_class.return: long
focal_class.signature: long createCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, long size)
focal_class.class_method_signature: Queues.getCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.full_signature: static CircularQueue<E> getCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.identifier: getCircularQueue
focal_class.modifiers: static
focal_class.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_class.return: CircularQueue<E>
focal_class.signature: CircularQueue<E> getCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_method.body: static <E> Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid){
          QueueRoot root = engine.get(rootRecid, new QueueRootSerializer(serializerSerializer));
          return new Queue<E>(engine, root.serializer, root.headerRecid, root.nextTailRecid,root.sizeRecid);
      }
focal_method.class_method_signature: Queues.getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_method.full_signature: static Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_method.identifier: getQueue
focal_method.invocations: get
focal_method.modifiers: static
focal_method.parameters: (Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)
focal_method.return: Queue<E>
focal_method.signature: Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid)