Class LockFunction
java.lang.Object
org.infinispan.lock.impl.functions.LockFunction
- All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>, Boolean>
public class LockFunction
extends Object
implements Function<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>,Boolean>
Lock function that allows to acquire the lock by a requestor, if such action is possible. It returns
Boolean.TRUE when the lock is acquired and Boolean.FALSE when it is not.- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey, ClusteredLockValue> entryView)
-
Field Details
-
EXTERNALIZER
-
-
Constructor Details
-
LockFunction
-
-
Method Details
-
apply
public Boolean apply(org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey, ClusteredLockValue> entryView) - Specified by:
applyin interfaceFunction<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>, Boolean>
-