Documentation ¶
Index ¶
- type LockManager
- func (locker *LockManager) AcquireLock(branchSession *apis.BranchSession) bool
- func (locker *LockManager) IsLockable(xid string, resourceID string, lockKey string) bool
- func (locker *LockManager) ReleaseGlobalSessionLock(globalTransaction *model.GlobalTransaction) bool
- func (locker *LockManager) ReleaseLock(branchSession *apis.BranchSession) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockManager ¶
type LockManager struct {
// contains filtered or unexported fields
}
func NewLockManager ¶
func NewLockManager(manager storage.LockManager) *LockManager
func (*LockManager) AcquireLock ¶
func (locker *LockManager) AcquireLock(branchSession *apis.BranchSession) bool
func (*LockManager) IsLockable ¶
func (locker *LockManager) IsLockable(xid string, resourceID string, lockKey string) bool
func (*LockManager) ReleaseGlobalSessionLock ¶
func (locker *LockManager) ReleaseGlobalSessionLock(globalTransaction *model.GlobalTransaction) bool
func (*LockManager) ReleaseLock ¶
func (locker *LockManager) ReleaseLock(branchSession *apis.BranchSession) bool
Click to show internal directories.
Click to hide internal directories.