1 23 24 package org.apache.commons.transaction.locking; 25 26 37 public interface MultiLevelLock2 extends MultiLevelLock { 38 39 43 public static final int COMPATIBILITY_NONE = 0; 44 45 49 public static final int COMPATIBILITY_REENTRANT = 1; 50 51 56 public static final int COMPATIBILITY_SUPPORT = 2; 57 58 63 public static final int COMPATIBILITY_REENTRANT_AND_SUPPORT = 3; 64 65 76 public boolean has(Object ownerId, int lockLevel); 77 78 99 public boolean test(Object ownerId, int targetLockLevel, int compatibility); 100 101 132 public boolean acquire(Object ownerId, int targetLockLevel, boolean wait, int compatibility, 133 boolean preferred, long timeoutMSecs) throws InterruptedException ; 134 135 } 136 | Popular Tags |