c timeouts Set set = new SyncSet(new HashSet(), timedlock); try { set. add("hi"); } // SyncSets translate timeouts and other lock failures // to unsupported operation exceptions, catch (UnsupportedOperationException ex) { System.out.println("Lock failure"); }
[ Introduction to this package. ]
@see Sync