1 7 8 package java.util.concurrent.locks; 9 import java.util.concurrent.TimeUnit ; 10 11 138 public interface Lock { 139 140 153 void lock(); 154 155 200 void lockInterruptibly() throws InterruptedException ; 201 202 203 228 boolean tryLock(); 229 230 285 boolean tryLock(long time, TimeUnit unit) throws InterruptedException ; 286 287 297 void unlock(); 298 299 316 Condition newCondition(); 317 318 } 319 320 321 322 323 324 325 326 327 328 329 330 331 | Popular Tags |