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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.google.common.collect.ImmutableSetMultimap<Account.Id,ExternalId>
allByAccount()
com.google.common.collect.ImmutableSetMultimap<String,ExternalId>
allByEmail()
com.google.common.collect.ImmutableSet<ExternalId>
byAccount(Account.Id accountId)
com.google.common.collect.ImmutableSet<ExternalId>
byAccount(Account.Id accountId, org.eclipse.jgit.lib.ObjectId rev)
default com.google.common.collect.ImmutableSet<ExternalId>
byEmail(String email)
com.google.common.collect.ImmutableSetMultimap<String,ExternalId>
byEmails(String... emails)
Optional<ExternalId>
byKey(ExternalId.Key key)
-
-
-
Method Detail
-
byKey
Optional<ExternalId> byKey(ExternalId.Key key) throws IOException
- Throws:
IOException
-
byAccount
com.google.common.collect.ImmutableSet<ExternalId> byAccount(Account.Id accountId) throws IOException
- Throws:
IOException
-
byAccount
com.google.common.collect.ImmutableSet<ExternalId> byAccount(Account.Id accountId, org.eclipse.jgit.lib.ObjectId rev) 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
com.google.common.collect.ImmutableSetMultimap<String,ExternalId> allByEmail() throws IOException
- Throws:
IOException
-
byEmail
default com.google.common.collect.ImmutableSet<ExternalId> byEmail(String email) throws IOException
- Throws:
IOException
-
-