key1 prop1 key2 prop2 ...
or
key1=prop1 key2=prop2 ...
It is even possible to mix the two patterns such as:
key1 prop1 key2=prop2 ...
If the value for the key is not set, then a (key, value) will be added with an empty String as value
key2= -key3 -key4=value4
TimerTask for which is it possible to block the execution in the calling Thread until the timer has elapsed.TimerTask class, the method to implement when the timer has elapsed is BlockingTimerTask.runImpl() rather than BlockingTimerTask.run() which can not be overriden.BlockingTimerTask will work just like a TimerTaskBlockingTimerTask instance = new BlockingTimerTask() { public void runImpl() { System.out.println("Done!"); } }; Timer timer = new Timer(); timer.schedule(instance, 1000); try { instance.await(); } catch (InterruptedException ex) { }
Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences