public class LockUpgrade
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LockUpgrade |
EXISTING |
static LockUpgrade |
ILLEGAL |
static LockUpgrade |
RANGE_READ_IMMED |
static LockUpgrade |
RANGE_WRITE_IMMED |
static LockUpgrade |
RANGE_WRITE_PROMOTE |
static LockUpgrade |
WRITE_PROMOTE |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
getIllegal()
This method is called to determine whether the upgrade is illegal.
|
(package private) boolean |
getPromotion()
This method is called when getUpgrade returns non-null to determine
whether the upgrade is a true promotion or can be granted immediately.
|
(package private) LockType |
getUpgrade()
This method is called first to determine whether an upgrade to a new
lock type is needed, and what the new lock type should be.
|
void |
setUpgrade(LockType upgrade) |
public static final LockUpgrade ILLEGAL
public static final LockUpgrade EXISTING
public static final LockUpgrade WRITE_PROMOTE
public static final LockUpgrade RANGE_READ_IMMED
public static final LockUpgrade RANGE_WRITE_IMMED
public static final LockUpgrade RANGE_WRITE_PROMOTE
boolean getIllegal()
LockType getUpgrade()
public void setUpgrade(LockType upgrade)
boolean getPromotion()
Copyright (c) 2004-2012 Oracle. All rights reserved.