Class LockingVisitors.LockVisitor.LVBuilder<O, L, B extends LockingVisitors.LockVisitor.LVBuilder<O,L,B>>
java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<LockingVisitors.LockVisitor<O,L>, B, RuntimeException>
org.apache.commons.lang3.concurrent.locks.LockingVisitors.LockVisitor.LVBuilder<O,L,B>
- Type Parameters:
O- the wrapped object type.L- the wrapped lock type.B- the builder type.
- All Implemented Interfaces:
FailableSupplier<LockingVisitors.LockVisitor<O,L>, RuntimeException>
- Direct Known Subclasses:
LockingVisitors.ReadWriteLockVisitor.Builder, LockingVisitors.ReentrantLockVisitor.Builder, LockingVisitors.StampedLockVisitor.Builder
- Enclosing class:
LockingVisitors.LockVisitor<O,L>
public static class LockingVisitors.LockVisitor.LVBuilder<O, L, B extends LockingVisitors.LockVisitor.LVBuilder<O,L,B>>
extends AbstractSupplier<LockingVisitors.LockVisitor<O,L>, B, RuntimeException>
Builds
LockingVisitors.LockVisitor instances.- Since:
- 3.18.0
-
Field Summary
Fields inherited from interface FailableSupplier
NUL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Supplies an objectSet the lock used from accept methods.Set the resource.setReadLockSupplier(Supplier<Lock> readLockSupplier) Supplies the read lock.setWriteLockSupplier(Supplier<Lock> writeLockSupplier) Supplies the write lock.Methods inherited from class AbstractSupplier
asThis
-
Constructor Details
-
LVBuilder
public LVBuilder()Constructs a new instance.
-
-
Method Details
-
get
-
setLock
-
setObject
-
setReadLockSupplier
Supplies the read lock.- Parameters:
readLockSupplier- Supplies the read lock.- Returns:
thisinstance.
-
setWriteLockSupplier
Supplies the write lock.- Parameters:
writeLockSupplier- Supplies the write lock.- Returns:
thisinstance.
-