Package org.jgroups.util
Class NameCache
java.lang.Object
org.jgroups.util.NameCache
Maintains the mappings between addresses and logical names (moved out of UUID.cache into a separate class)
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LazyRemovalCache<Address, String> Keeps track of associations between addresses and logical namesprotected static final LazyRemovalCache.Printable<Address, LazyRemovalCache.Entry<String>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic StringReturns a copy of the cache's contentsstatic Stringstatic voidstatic voidremoveAll(Collection<Address> mbrs) static voidretainAll(Collection<Address> logical_addrs)
-
Field Details
-
cache
Keeps track of associations between addresses and logical names -
print_function
protected static final LazyRemovalCache.Printable<Address,LazyRemovalCache.Entry<String>> print_function
-
-
Constructor Details
-
NameCache
public NameCache()
-
-
Method Details
-
add
-
add
-
get
-
getContents
Returns a copy of the cache's contents -
remove
-
removeAll
-
retainAll
-
printCache
-