O - the wrapped object type.L - the wrapped lock type.B - the builder type.public static class LockingVisitors.LockVisitor.LVBuilder<O,L,B extends LockingVisitors.LockVisitor.LVBuilder<O,L,B>> extends AbstractSupplier<LockingVisitors.LockVisitor<O,L>,B,java.lang.RuntimeException>
LockingVisitors.LockVisitor instances.NUL| Constructor and Description |
|---|
LVBuilder()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
LockingVisitors.LockVisitor<O,L> |
get()
Supplies an object
|
B |
setLock(L lock)
Set the lock used from accept methods.
|
B |
setObject(O object)
Set the resource.
|
B |
setReadLockSupplier(java.util.function.Supplier<java.util.concurrent.locks.Lock> readLockSupplier)
Supplies the read lock.
|
B |
setWriteLockSupplier(java.util.function.Supplier<java.util.concurrent.locks.Lock> writeLockSupplier)
Supplies the write lock.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnulpublic LockingVisitors.LockVisitor<O,L> get()
FailableSupplierpublic B setLock(L lock)
lock - the lock.this instance.public B setObject(O object)
object - the resource.this instance.public B setReadLockSupplier(java.util.function.Supplier<java.util.concurrent.locks.Lock> readLockSupplier)
readLockSupplier - Supplies the read lock.this instance.public B setWriteLockSupplier(java.util.function.Supplier<java.util.concurrent.locks.Lock> writeLockSupplier)
writeLockSupplier - Supplies the write lock.this instance.Copyright © 2010 - 2025 Adobe. All Rights Reserved