예제 #1
0
 @Test
 public void testAsynReserve() throws IOException, InterruptedException, ExecutionException {
   client.watch("kk");
   for (int i = 0; i < 3; i++) {
     client.asynreserve();
   }
   List<Job> jobs = client.getJobs(3);
   Assert.assertEquals("haha", new String(jobs.get(0).getData()));
   client.stop();
 }