public class SoftLockHelper extends Object
| Constructor and Description |
|---|
SoftLockHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
commit(SoftLock softLock,
Store underlyingStore,
ElementValueComparator comparator)
Commit a soft lock.
|
static void |
rollback(SoftLock softLock,
Store underlyingStore,
ElementValueComparator comparator)
Rollback a soft lock.
|
public static void commit(SoftLock softLock, Store underlyingStore, ElementValueComparator comparator)
softLock - the soft lock to commit.underlyingStore - the underlying store.comparator - the element value comparator.public static void rollback(SoftLock softLock, Store underlyingStore, ElementValueComparator comparator)
softLock - the soft lock to commit.underlyingStore - the underlying store.comparator - the element value comparator.phase 1 rollback of the 2PC implementationCopyright © 2021. All rights reserved.