public class CoopLockRecords extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
FORMAT_VERSION
Supported version of operation locks persistent objects format.
|
| Constructor and Description |
|---|
CoopLockRecords() |
| Modifier and Type | Method and Description |
|---|---|
long |
getFormatVersion() |
Set<CoopLockRecord> |
getLocks() |
CoopLockRecords |
setFormatVersion(long formatVersion) |
CoopLockRecords |
setLocks(Set<CoopLockRecord> locks) |
String |
toString() |
public static final long FORMAT_VERSION
When making any changes to cooperative locking persistent objects format (adding, renaming or removing fields), then you need to increase this version number to prevent corruption.
public long getFormatVersion()
public CoopLockRecords setFormatVersion(long formatVersion)
public Set<CoopLockRecord> getLocks()
public CoopLockRecords setLocks(Set<CoopLockRecord> locks)
Copyright © 2023. All rights reserved.