pub enum JavaLockOperation {
Lock,
LockAndGetFence,
TryLock,
TryLockTimed,
Unlock,
GetFence,
IsLocked,
IsLockedByCurrentThread,
ForceUnlock,
}Expand description
Java lock facade operation exposed by the migration toolkit.
Variants§
Lock
Lock.lock.
LockAndGetFence
Hazelcast CP lockAndGetFence.
TryLock
Immediate tryLock.
TryLockTimed
Timed tryLock.
Unlock
Explicit unlock.
GetFence
Read the current fencing token.
IsLocked
Read whether the lock is held.
IsLockedByCurrentThread
Check whether this session/endpoint owns the lock.
ForceUnlock
Privileged force unlock.
Implementations§
Source§impl JavaLockOperation
impl JavaLockOperation
Sourcepub const fn protocol_family(self) -> JavaLockProtocolFamily
pub const fn protocol_family(self) -> JavaLockProtocolFamily
Return the protocol family that backs this facade operation.
Sourcepub const fn is_privileged(self) -> bool
pub const fn is_privileged(self) -> bool
Return whether this operation requires admin authorization and audit.
Trait Implementations§
Source§impl Clone for JavaLockOperation
impl Clone for JavaLockOperation
Source§fn clone(&self) -> JavaLockOperation
fn clone(&self) -> JavaLockOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JavaLockOperation
Source§impl Debug for JavaLockOperation
impl Debug for JavaLockOperation
impl Eq for JavaLockOperation
Source§impl PartialEq for JavaLockOperation
impl PartialEq for JavaLockOperation
Source§fn eq(&self, other: &JavaLockOperation) -> bool
fn eq(&self, other: &JavaLockOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavaLockOperation
Auto Trait Implementations§
impl Freeze for JavaLockOperation
impl RefUnwindSafe for JavaLockOperation
impl Send for JavaLockOperation
impl Sync for JavaLockOperation
impl Unpin for JavaLockOperation
impl UnsafeUnpin for JavaLockOperation
impl UnwindSafe for JavaLockOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more