-
Method Summary
void
Consumes the referenced value while holding a pessimistic read lock.
Maps this referenced value using the specified mapping function while holding a read lock.
Methods inherited from interface java.util.function.Supplier
get
-
Method Details
-
consume
Consumes the referenced value while holding a pessimistic read lock.
- Parameters:
consumer - a consumer of the referenced value
-
map
Maps this referenced value using the specified mapping function while holding a read lock.
- Type Parameters:
R - the mapped type
- Parameters:
mapper - a mapping function
- Returns:
- a reader of the mapped reference.