public class HelperProfileRepository extends Object implements ProfileRepository, TerminableModule
| Constructor and Description |
|---|
HelperProfileRepository(Sql sql,
String tableName,
int preloadAmount) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Profile> |
getKnownProfiles() |
Optional<Profile> |
getProfile(String name) |
Profile |
getProfile(UUID uniqueId) |
Promise<Collection<Profile>> |
lookupKnownProfiles() |
Promise<Optional<Profile>> |
lookupProfile(String name) |
Promise<Profile> |
lookupProfile(UUID uniqueId) |
Promise<Map<UUID,Profile>> |
lookupProfiles(Iterable<UUID> uniqueIds) |
Promise<Map<String,Profile>> |
lookupProfilesByName(Iterable<String> names) |
void |
setup(TerminableConsumer consumer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProfiles, getProfilesByNamebindModuleWithpublic void setup(@Nonnull TerminableConsumer consumer)
setup in interface TerminableModule@Nonnull public Profile getProfile(@Nonnull UUID uniqueId)
getProfile in interface ProfileRepository@Nonnull public Optional<Profile> getProfile(@Nonnull String name)
getProfile in interface ProfileRepository@Nonnull public Collection<Profile> getKnownProfiles()
getKnownProfiles in interface ProfileRepository@Nonnull public Promise<Profile> lookupProfile(@Nonnull UUID uniqueId)
lookupProfile in interface ProfileRepository@Nonnull public Promise<Optional<Profile>> lookupProfile(@Nonnull String name)
lookupProfile in interface ProfileRepository@Nonnull public Promise<Collection<Profile>> lookupKnownProfiles()
lookupKnownProfiles in interface ProfileRepository@Nonnull public Promise<Map<UUID,Profile>> lookupProfiles(@Nonnull Iterable<UUID> uniqueIds)
lookupProfiles in interface ProfileRepository@Nonnull public Promise<Map<String,Profile>> lookupProfilesByName(@Nonnull Iterable<String> names)
lookupProfilesByName in interface ProfileRepositoryCopyright © 2018. All rights reserved.