Klasse GroupSuggestionCache
java.lang.Object
de.delinkedde.areashopreborn.command.GroupSuggestionCache
Maintains an immutable non-blocking snapshot of persistent region-group names.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGroupSuggestionCache(Database database, RegionGroupRepository groups, int maximumEntries) Creates an empty group-name cache. -
Methodenübersicht
-
Konstruktordetails
-
GroupSuggestionCache
Creates an empty group-name cache.- Parameter:
database- asynchronous database executorgroups- group repositorymaximumEntries- maximum names retained by the cache
-
-
Methodendetails
-
refresh
Refreshes group names asynchronously.- Gibt zurück:
- future containing cached group count
-
names
Returns the current stable group-name snapshot.- Gibt zurück:
- immutable names
-