Class Reference.ReferenceReader<T,V>
java.lang.Object
org.wildfly.clustering.server.util.Reference.ReferenceReader<T,V>
- Type Parameters:
T- the referenced object typeV- the mapped value type
- All Implemented Interfaces:
Supplier<V>, Reference.Reader<V>
A reader of an object reference.
- Author:
- Paul Ferraro
-
Method Summary
-
Method Details
-
map
Description copied from interface:Reference.ReaderMaps this referenced value using the specified mapping function while holding a read lock.- Specified by:
mapin interfaceReference.Reader<T>- Type Parameters:
R- the mapped type- Parameters:
mapper- a mapping function- Returns:
- a reader of the mapped reference.
-
consume
Description copied from interface:Reference.ReaderConsumes the referenced value while holding a pessimistic read lock.- Specified by:
consumein interfaceReference.Reader<T>- Parameters:
consumer- a consumer of the referenced value
-
get
-