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