ContainerHandle, LockingPolicy
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean[][] | C_COMPAT
Container lock compatibility table. |
| public static final int | C_NUMBER
Number of types of container locks. |
| public static final ContainerLock | CIS
Container Intent Shared lock |
| public static final ContainerLock | CIX
Container Intent Exclusive lock |
| private final int | compat
Bit mask which represents the lock types that are compatible with this lock type. |
| public static final ContainerLock | CS
Container Shared lock |
| public static final ContainerLock | CU
Container Update lock |
| public static final ContainerLock | CX
Container Exclusive lock |
| private static String[] | |
| private final int | type
Integer representation of the type of the lock. |
| private final int | typeBit
Bit mask with one bit set. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean | |
| public String |
| C_COMPAT | back to summary |
|---|---|
| private static final boolean[][] C_COMPAT Container lock compatibility table. | |
| C_NUMBER | back to summary |
|---|---|
| public static final int C_NUMBER Number of types of container locks. | |
| CIS | back to summary |
|---|---|
| public static final ContainerLock CIS Container Intent Shared lock | |
| CIX | back to summary |
|---|---|
| public static final ContainerLock CIX Container Intent Exclusive lock | |
| compat | back to summary |
|---|---|
| private final int compat Bit mask which represents the lock types that are compatible with this lock type. | |
| CS | back to summary |
|---|---|
| public static final ContainerLock CS Container Shared lock | |
| CU | back to summary |
|---|---|
| public static final ContainerLock CU Container Update lock | |
| CX | back to summary |
|---|---|
| public static final ContainerLock CX Container Exclusive lock | |
| shortnames | back to summary |
|---|---|
| private static String[] shortnames | |
| type | back to summary |
|---|---|
| private final int type Integer representation of the type of the lock. | |
| typeBit | back to summary |
|---|---|
| private final int typeBit Bit mask with one bit set. The position of the bit tells the type of the lock. | |
| ContainerLock | back to summary |
|---|---|
| private ContainerLock(int type) | |
| getType | back to summary |
|---|---|
| public int getType() Get an integer representation of the type of the lock. This method is guaranteed to return an integer >= 0 and < C_NUMBER. No correlation between the value and one of the static variables (CIS etc.) is guaranteed, except that the values returned do not change. | |
| isCompatible | back to summary |
|---|---|
| public boolean isCompatible(ContainerLock granted) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |