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,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(Supplier<Lock> readLockSupplier)
Supplies the read lock.
|
B |
setWriteLockSupplier(Supplier<Lock> writeLockSupplier)
Supplies the write lock.
|
asThisclone, equals, finalize, 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(Supplier<Lock> readLockSupplier)
readLockSupplier - Supplies the read lock.this instance.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.