Interface ExternalIdCache
- All Known Implementing Classes:
DisabledExternalIdCache
public interface ExternalIdCache
Caches external IDs of all accounts. Note that the granularity is "revision" only, so each update
will cache a new value containing all external IDs.
On each cache access the SHA1 of the refs/meta/external-ids branch is read to verify that the cache is up to date.
All returned collections are unmodifiable.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSetMultimap<Account.Id,
ExternalId> com.google.common.collect.ImmutableSetMultimap<String,
ExternalId> com.google.common.collect.ImmutableSet<ExternalId>
byAccount
(Account.Id accountId) default com.google.common.collect.ImmutableSet<ExternalId>
com.google.common.collect.ImmutableSetMultimap<String,
ExternalId> byKey
(ExternalId.Key key)
-
Method Details
-
byKey
- Throws:
IOException
-
byAccount
com.google.common.collect.ImmutableSet<ExternalId> byAccount(Account.Id accountId) throws IOException - Throws:
IOException
-
allByAccount
com.google.common.collect.ImmutableSetMultimap<Account.Id,ExternalId> allByAccount() throws IOException- Throws:
IOException
-
byEmails
com.google.common.collect.ImmutableSetMultimap<String,ExternalId> byEmails(String... emails) throws IOException - Throws:
IOException
-
allByEmail
- Throws:
IOException
-
byEmail
- Throws:
IOException
-