814815816817818819820821822823824
client.useTube((String) tubeNames[1]); String srcString = "testPeekBuried"; // peekBuried Job job = client.peekBuried(); assertNull(job); // producer long jobId = client.put(65536, 0, 120, srcString.getBytes()); assertTrue(jobId > 0);
822823824825826827828829830831832
// producer long jobId = client.put(65536, 0, 120, srcString.getBytes()); assertTrue(jobId > 0); // peekBuried job = client.peekBuried(); assertNull(job); // reserve and bury job = client.reserve(null); assertNotNull(job);
832833834835836837838839840841842
assertNotNull(job); assertEquals(jobId, job.getJobId()); client.bury(job.getJobId(), 65536); // peekBuried job = client.peekBuried(); assertNotNull(job); assertEquals(jobId, job.getJobId()); // delete client.delete(jobId);
840841842843844845846847848849850
// delete client.delete(jobId); // peekBuried job = client.peekBuried(); assertNull(job); popWatchedTubes(client, tubeNames); }