com.tc.object.config
Interface LockDefinition
public interface LockDefinition
Defines a lock. Locks may be either auto locks or named locks. Both types of locks have four locking
levels: WRITE, READ, CONCURRENT, and SYNCHRONOUS_WRITE. Auto locks may also be auto-synchronized. The
locking level and auto-synchronized flag are defined in the ConfigLockLevel.
Field Summary |
static java.lang.String |
TC_AUTOLOCK_NAME
Name to use with autolocks: "tc:autolock" |
TC_AUTOLOCK_NAME
static final java.lang.String TC_AUTOLOCK_NAME
- Name to use with autolocks: "tc:autolock"
- See Also:
- Constant Field Values
setLockName
void setLockName(java.lang.String lockName)
- Parameters:
lockName
- Lock name
getLockName
java.lang.String getLockName()
- Returns:
- Lock name,
TC_AUTOLOCK_NAME
for auto locks
setLockLevel
void setLockLevel(ConfigLockLevel lt)
- Parameters:
lt
- Lock level
getLockLevel
ConfigLockLevel getLockLevel()
- Returns:
- Lock level
getLockLevelAsInt
int getLockLevelAsInt()
- Returns:
- Lock level as code defining level
- See Also:
ConfigLockLevel
getLockContextInfo
java.lang.String getLockContextInfo()
- Returns:
- Configuration text of the lock definition
isAutolock
boolean isAutolock()
- Returns:
- True if auto lock, false if named lock
commit
void commit()
- Commit this definition, after which the definition cannot be changed.
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.