Class IsLocked
- java.lang.Object
-
- org.infinispan.lock.impl.functions.IsLocked
-
- All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>,Boolean>
public class IsLocked extends Object implements Function<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>,Boolean>
IsLocked function that allows to know if a lock is already acquired. It returnsBoolean.TRUEwhen the lock is acquired andBoolean.FALSEwhen it is not.- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.marshall.AdvancedExternalizer<IsLocked>EXTERNALIZER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue> entryView)
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<IsLocked> EXTERNALIZER
-
-
Constructor Detail
-
IsLocked
public IsLocked()
-
IsLocked
public IsLocked(Object requestor)
-
-
Method Detail
-
apply
public Boolean apply(org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue> entryView)
- Specified by:
applyin interfaceFunction<org.infinispan.functional.EntryView.ReadWriteEntryView<ClusteredLockKey,ClusteredLockValue>,Boolean>
-
-