Code example for TimeUnit

Methods: sleep

0
    cache.putWithWriter(new Element("key", "value"));
    cache.removeWithWriter("key");
    WriteBehindManager wbManager = ((WriteBehindManager) cache.getWriterManager());
    long size = wbManager.getQueueSize();
    System.out.println("sleeping 1 min write behind queue size " + size);
    TimeUnit.MINUTES.sleep(1L);
  } 
}