public final class ContainerLock
extends java.lang.Object
ContainerHandle
,
LockingPolicy
Modifier and Type | Field and Description |
---|---|
private static boolean[][] |
C_COMPAT
Container lock compatibility table.
|
static int |
C_NUMBER
Number of types of container locks.
|
static ContainerLock |
CIS
Container Intent Shared lock
|
static ContainerLock |
CIX
Container Intent Exclusive lock
|
private int |
compat
Bit mask which represents the lock types that are compatible with this
lock type.
|
static ContainerLock |
CS
Container Shared lock
|
static ContainerLock |
CU
Container Update lock
|
static ContainerLock |
CX
Container Exclusive lock
|
private static java.lang.String[] |
shortnames |
private int |
type
Integer representation of the type of the lock.
|
private int |
typeBit
Bit mask with one bit set.
|
Modifier | Constructor and Description |
---|---|
private |
ContainerLock(int type) |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get an integer representation of the type of the lock.
|
boolean |
isCompatible(ContainerLock granted) |
java.lang.String |
toString() |
private final int type
private final int typeBit
private final int compat
public static final int C_NUMBER
private static final boolean[][] C_COMPAT
private static java.lang.String[] shortnames
public static final ContainerLock CIS
public static final ContainerLock CIX
public static final ContainerLock CS
public static final ContainerLock CU
public static final ContainerLock CX
public int getType()
public boolean isCompatible(ContainerLock granted)
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.