public interface ProfileCache
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<UUID,Profile> |
getAllPresent(Iterable<UUID> ids)
Query the cache for the names of the given UUIDs.
|
Profile |
getIfPresent(UUID uuid)
Query the cache for the name for a given UUID.
|
void |
put(Profile profile)
Store the given name as the last known name for the given UUID.
|
void |
putAll(Iterable<Profile> profiles)
Store a list of zero or more names.
|
void put(Profile profile)
If the operation fails, an error will be logged but no exception will be thrown.
profile - a profilevoid putAll(Iterable<Profile> profiles)
If the operation fails, an error will be logged but no exception will be thrown.
profiles - an iterable of profiles@Nullable Profile getIfPresent(UUID uuid)
If the operation fails, an error will be logged but no exception will be thrown.
uuid - the UUIDnull if it is not knowncom.google.common.collect.ImmutableMap<UUID,Profile> getAllPresent(Iterable<UUID> ids)
If the operation fails, an error will be logged but no exception will be thrown.
ids - a list of UUIDs to queryCopyright © 2014. All Rights Reserved.